Share via


Borders.DistanceFromLeft Property 

Returns or sets the space (in points) between the text and the left 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.DistanceFromLeft

Dim sampleValue As Integer
borders1.DistanceFromLeft = sampleValue

Syntax

Property DistanceFromLeft() As Integer
int DistanceFromLeft {get; set;}
property Int32 DistanceFromLeft{
    Int32 get();
    Void set(Int32);
}
public int get_DistanceFromLeft();
public void set_DistanceFromLeft(int);
function get DistanceFromLeft() : int;
function set DistanceFromLeft(int);

Remarks

Using this property with a page border, you can set either the space between the text and the left page border or the space between the left edge of the page and the left 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