Share via


TextEffectFormat.Alignment Property (PowerPoint)

Returns or sets the alignment for the specified WordArt. Read/write.

Syntax

expression .Alignment

expression A variable that represents a TextEffectFormat object.

Remarks

The value of the Alignment property can be one of these MsoTextEffectAlignment constants.

msoTextEffectAlignmentCentered

msoTextEffectAlignmentLeft

msoTextEffectAlignmentMixed

msoTextEffectAlignmentRight

msoTextEffectAlignmentStretchJustify

msoTextEffectAlignmentWordJustify

msoTextEffectAlignmentLetterJustify

Example

This example adds a WordArt object to the first slide in the active presentation and then right-aligns the WordArt.

Set mySh = Application.ActivePresentation.Slides(1).Shapes

Set myTE = mySh.AddTextEffect(PresetTextEffect:=msoTextEffect1, _

    Text:="Test Text", FontName:="Palatino", FontSize:=54, _

    FontBold:=True, FontItalic:=False, Left:=100, Top:=50)

myTE.TextEffect.Alignment = msoTextEffectAlignmentRight

See Also

Concepts

TextEffectFormat Object Members

TextEffectFormat Object