Share via


Borders.DistanceFromTop Property

Returns or sets the space (in points) between the text and the top border.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property DistanceFromTop As Integer
    Get
    Set
'Usage
Dim instance As Borders
Dim value As Integer

value = instance.DistanceFromTop

instance.DistanceFromTop = value
int DistanceFromTop { get; set; }

Property Value

Type: System.Int32

Remarks

Using this property with a page border, you can set either the space between the text and the top page border or the space between the top edge of the page and the top page border. Where the distance is measured from depends on the value of the DistanceFrom property.

See Also

Reference

Borders Interface

Borders Members

Microsoft.Office.Interop.Word Namespace