Borders.DistanceFromTop Property
Word Developer Reference |
Returns or sets the space (in points) between the text and the top border. Read/write Long.
Syntax
expression.DistanceFromTop
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 top page border or the space between the top edge of the page and the top page 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 top border to 3 points.
Visual Basic for Applications |
---|
|
This example adds a border around each page in the first section in the selection. The example also sets the distance between the text and the page border to 6 points.
Visual Basic for Applications |
---|
|
See Also