HorizontalAnchor Property

Applies To

TextFrame object.

Description

Returns or sets the horizontal anchor type for the specified text. Can be one of the following MsoHorizontalAnchor constants: msoAnchorCenter, msoAnchorNone, or msoHorizontalAnchorMixed. Read/write Long.

See Also

VerticalAnchor property.

Example

This example sets the anchor type for 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