Class TextEffectFormat (Word VBA)

Contains properties and methods that apply to WordArt objects.


To use a TextEffectFormat class variable it first needs to be instantiated, for example

Dim tef as TextEffectFormat
Set tef = ActiveDocument.Background.TextEffect

The following procedures can be used to set variables of type TextEffectFormat: InlineShape.TextEffect, Shape.TextEffect and ShapeRange.TextEffect


Alignment returns or sets an MsoTextEffectAlignment constant that represents the alignment for the specified text effect.

ActiveDocument.Background.TextEffect.Alignment =

FontBold sets the font to bold for the specified Word Art shape.

ActiveDocument.Background.TextEffect.FontBold =

FontItalic italicizes WordArt text.

ActiveDocument.Background.TextEffect.FontItalic =

FontName returns or sets the name of the font for the dropped capital letter.

ActiveDocument.Background.TextEffect.FontName =

FontSize returns or sets the font size for the specified WordArt, in points.

ActiveDocument.Background.TextEffect.FontSize =

KernedPairs indicates that character pairs in a WordArt object have been kerned.

ActiveDocument.Background.TextEffect.KernedPairs =

NormalizedHeight msoTrue if all characters (both uppercase and lowercase) in the specified WordArt are the same height.

ActiveDocument.Background.TextEffect.NormalizedHeight =

Parent returns an object that represents the parent object of the specified TextEffectFormat object.

Dim objParent As Object
Set objParent = ActiveDocument.Background.TextEffect.Parent

PresetShape returns or sets the shape of the specified WordArt.

ActiveDocument.Background.TextEffect.PresetShape =

PresetTextEffect returns or sets the style of the specified WordArt. The values for this property correspond to the formats in the WordArt Gallery dialog box (Insert menu), numbered from left to right, top to bottom.

ActiveDocument.Background.TextEffect.PresetTextEffect =

RotatedChars msoTrue if characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape. MsoFalse if characters in the specified WordArt retain their original orientation relative to the bounding shape.

ActiveDocument.Background.TextEffect.RotatedChars =

Text returns or sets the text in the specified object.

ActiveDocument.Background.TextEffect.Text =

Tracking returns or sets the ratio of the horizontal space allotted to each character in the specified WordArt in relation to the width of the character.

ActiveDocument.Background.TextEffect.Tracking =