DistanceFromLeft Property

Applies To

Borders collection object.

Description

Returns or sets the space (in points) between the text and the left border. Read/write Long.

Note 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.

See Also

DistanceFrom property, DistanceFromBottom property, DistanceFromRight property, DistanceFromTop property.

Example

This example adds a border around each frame in the active document and sets the distance between the frame and the border to 5 points.

For Each aFrame In ActiveDocument.Frames
    With aFrame.Borders
        .Enable = True
        .DistanceFromLeft = 5
        .DistanceFromRight = 5
        .DistanceFromTop = 5
        .DistanceFromBottom = 5
    End With
Next aFrame
This example adds a border around the first paragraph in the active document and sets the distance between the text and the left border to 3 points.

With ActiveDocument.Paragraphs(1).Borders
    .Enable = True
    .DistanceFromLeft = 3
End With