VerticalAnchor Property

Applies To

TextFrame object.

Description

Returns or sets the vertical anchor type for the specified text. Can be one of the following MsoVerticalAnchor constants: msoAnchorBottom, msoAnchorBottomBaseLine, msoAnchorMiddle, msoAnchorTop, msoAnchorTopBaseline, or msoVerticalAnchorMixed. Read/write Long.

See Also

HorizontalAnchor property.

Example

This example sets the anchor type for the shape one on myDocument to top centered.

Set myDocument = ActivePresentation.SlideMaster
With myDocument.Shapes(1)
    .TextFrame.HorizontalAnchor = msoAnchorCenter
    .TextFrame.VerticalAnchor = msoAnchorTop
End With