HorizontalAnchor Property
MsoHorizontalAnchor
MsoHorizontalAnchor can be one of these MsoHorizontalAnchor constants. |
msoAnchorNone |
msoHorizontalAnchorMixed |
msoAnchorCenter |
expression.HorizontalAnchor
*expression * Required. An expression that returns one of the objects in the Applies To list.
Example
This example sets the alignment of the text in shape one on myDocument
to top centered.
Set myDocument = ActivePresentation.SlideMaster
With myDocument.Shapes(1)
.TextFrame.HorizontalAnchor = msoAnchorCenter
.TextFrame.VerticalAnchor = msoAnchorTop
End With
Applies to | TextFrame Object
See Also | VerticalAnchor Property