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)

Usage

Dim borders1 As Borders

Dim returnValue As Integer
returnValue = borders1.DistanceFromTop

Dim sampleValue As Integer
borders1.DistanceFromTop = sampleValue

Syntax

Property DistanceFromTop() As Integer
int DistanceFromTop {get; set;}
property Int32 DistanceFromTop{
    Int32 get();
    Void set(Int32);
}
public int get_DistanceFromTop();
public void set_DistanceFromTop(int);
function get DistanceFromTop() : int;
function set DistanceFromTop(int);

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Borders Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Borders Members