Gets or sets, in inches, the top position of the control relative to the section that contains it.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Top As System.Single |
C# | |
---|
public System.float Top {get; set;} |
Property Value
A float or Single value in inches.
Remarks
Example
C# | Copy Code |
---|
private void detail_Format(object sender, System.EventArgs eArgs)
{
this.textBox1.Height = 1;
this.textBox1.Width = 2;
this.textBox1.Left = 2;
this.textBox1.Top = 0;
} |
Visual Basic | Copy Code |
---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
With Me.TextBox1
.Height = 1
.Width = 2
.Left = 2
.Top = 0
End With
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