| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property Size As SizeF  | |
| C# | |
|---|---|
public virtual SizeF Size {get; set;} | |
Property Value
System.Drawing.SizeF.| C# |  Copy Code | 
|---|---|
private void detail_Format(object sender, System.EventArgs eArgs) { System.Drawing.SizeF s = new System.Drawing.SizeF(); s.Width = 2; s.Height = 1; this.textBox1.Size = s; }  | |
| Visual Basic |  Copy Code | 
|---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format Dim s As System.Drawing.SizeF s.Width = 2 s.Height = 1 Me.TextBox1.Size = s End Sub  | |