Share via


Borders.DistanceFromRight Property 

Returns or sets the space (in points) between the right edge of the text and the right 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.DistanceFromRight

Dim sampleValue As Integer
borders1.DistanceFromRight = sampleValue

Syntax

Property DistanceFromRight() As Integer
int DistanceFromRight {get; set;}
property Int32 DistanceFromRight{
    Int32 get();
    Void set(Int32);
}
public int get_DistanceFromRight();
public void set_DistanceFromRight(int);
function get DistanceFromRight() : int;
function set DistanceFromRight(int);

Remarks

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