Table of contents
Collapse the table of content
Expand the table of content

Cell.VerticalTextAlignment Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns or sets a PbVerticalTextAlignmentTypeconstant that represents the vertical alignment of text in a text box. Read/write.


expression. VerticalTextAlignment

_expression_A variable that represents a Cell object.


The VerticalTextAlignment property value can be one of these PbVerticalTextAlignmentType constants.

| pbVerticalTextAlignmentBottom| | pbVerticalTextAlignmentCenter| | pbVerticalTextAlignmentTop|


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
© 2018 Microsoft