TextFrame.VerticalTextAlignment property (Publisher)
Returns or sets a PbVerticalTextAlignmentType constant that represents the vertical alignment of text in a text box. Read/write.
Syntax
expression.VerticalTextAlignment
expression A variable that represents a TextFrame object.
Remarks
The VerticalTextAlignment property value can be one of the PbVerticalTextAlignmentType constants.
Example
This example vertically centers the text in the specified text frame. This example assumes that there is at least one shape on the first page of the active publication.
Sub SetVerticalAlignment()
ActiveDocument.Pages(1).Shapes(1).TextFrame _
.VerticalTextAlignment = pbVerticalTextAlignmentCenter
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.