The Top property returns or sets the distance between the internal top edge of an object and the top edge of its container.
object.Top [= value]
The parts of the Top property syntax are described in the following table.
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
value | A numeric expression that specifies distance. |
For a form, a Top property is always expressed in twips; for a control, they are measured in units depending on the coordinate system of its container. The values for these properties change as the object is moved by the user or by code. For the Timer control, this property is not available at run time.
For either property, you can specify a single-precision number.
Use the Left, Top, Height, and Width properties for operations based on an object's external dimensions, such as moving or resizing. Use the ScaleLeft, ScaleTop, ScaleHeight, and ScaleWidth properties for operations based on an object's internal dimensions, such as drawing or moving objects that are contained within the object. The scale-related properties apply only to Form objects.