PageSetup.VerticalAlignment Property
Word Developer Reference |
Returns or sets the vertical alignment of text on each page in a document or section. Read/write WdVerticalAlignment.
Syntax
expression.VerticalAlignment
expression Required. A variable that represents a PageSetup object.
Example
This example changes the vertical alignment of the first document so that the text is centered between the top and bottom margins.
Visual Basic for Applications |
---|
|
This example creates a new document and then inserts the same paragraph 10 times. The vertical alignment of the new document is then set so that the 10 paragraphs are equally spaced (justified) between the top and bottom margins.
Visual Basic for Applications |
---|
|
See Also