ActiveReports3 Request technical support
Top Property
See Also  Example


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 Single
Visual Basic (Usage)Copy Code
Dim instance As ARControl
Dim value As Single
 
instance.Top = value
 
value = instance.Top
C# 
public float Top {get; set;}

Return Value

A float or Single value in inches.

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 BasicCopy 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

Remarks

Note: Be sure that the section containing the control is sized to accommodate the location.  Otherwise the control may render in a hidden area.

See Also