Delen via


DomainUpDown.Top Property (2007 System)

Gets or sets the distance, in points, between the top edge of the DomainUpDown and the top edge of the document.

Namespace:  Microsoft.Office.Tools.Word.Controls
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Property Top As Single
'Usage
Dim instance As DomainUpDown 
Dim value As Single 

value = instance.Top

instance.Top = value
public float Top { get; set; }
public:
property float Top {
    float get ();
    void set (float value);
}
public function get Top () : float 
public function set Top (value : float)

Property Value

Type: System.Single
The distance, in points, between the top edge of the DomainUpDown and the top edge of the document.

Remarks

The DomainUpDown.Top property uses points, whereas Control.Top property uses pixels.

You can only use the Top property of a DomainUpDown control that is not in line with text. For more information, see Adding Controls to Office Documents at Run Time.

Examples

For a code example that demonstrates how to use this property, see Button.Top. All controls in the Microsoft.Office.Tools.Word.Controls namespace have a functionally equivalent Top property.

.NET Framework Security

See Also

Reference

DomainUpDown Class

DomainUpDown Members

Microsoft.Office.Tools.Word.Controls Namespace