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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for