Borders.DistanceFromRight Property
Word Developer Reference |
Returns or sets the space (in points) between the right edge of the text and the right border. Read/write Long.
Syntax
expression.DistanceFromRight
expression A variable that represents a Borders object.
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.
Example
This example adds a border around each paragraph in the selection and sets the distance between the text and the right border to 3 points.
Visual Basic for Applications |
---|
|
This example adds a single border around each page in section one in the active document. The example also sets the distance between the right and left border and the corresponding edges of the page to 22 points.
Visual Basic for Applications |
---|
|
See Also