TextFrame.VerticalTextAlignment Property (Publisher)

Returns or sets a PbVerticalTextAlignmentTypeconstant 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 these PbVerticalTextAlignmentType constants.

pbVerticalTextAlignmentBottom
pbVerticalTextAlignmentTop

Example

This example vertically centers the text in the specified text frame. This example assumes 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