Gets or sets the size of the control in inches.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property Size As SizeF |
C# | |
---|
public virtual SizeF Size {get; set;} |
Property Value
System.Drawing.SizeF.
Example
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 |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also