Share via


Borders.DistanceFrom Property 

Returns or sets a value that indicates whether the specified page border is measured from the edge of the page or from the text it surrounds.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim borders1 As Borders

Dim returnValue As WdBorderDistanceFrom
returnValue = borders1.DistanceFrom

Dim sampleValue As WdBorderDistanceFrom
borders1.DistanceFrom = sampleValue

Syntax

Property DistanceFrom() As WdBorderDistanceFrom
WdBorderDistanceFrom DistanceFrom {get; set;}
property WdBorderDistanceFrom^ DistanceFrom{
    WdBorderDistanceFrom^ get();
    Void set(WdBorderDistanceFrom^);
}
public WdBorderDistanceFrom get_DistanceFrom();
public void set_DistanceFrom(WdBorderDistanceFrom);
function get DistanceFrom() : WdBorderDistanceFrom;
function set DistanceFrom(WdBorderDistanceFrom);

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