Table of contents
TOC
Collapse the table of content
Expand the table of content

Shapes.AddWordArt Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a Shape object that represents the WordArt to be added to the publication.

Syntax

expression. AddWordArt( PresetWordArt, Text, FontName, FontSize, FontBold, FontItalic, Left, Top)

_expression_A variable that represents a Shapes object.

Parameters

NameRequired/OptionalData TypeDescription
PresetWordArtRequiredpbPresetWordArtThe type of preset WordArt to add.
TextRequiredStringThe text of the WordArt.
FontNameRequiredStringThe name of the font to be used in the WordArt.
FontSizeRequiredVariantThe size of the font to be used in the WordArt.
FontBoldRequired[MSOTRISTATE]Whether the WordArt text should be bold. See Remarks for possible values.
FontItalicRequired[MSOTRISTATE]Whether the WordArt text should be italic. See Remarks for possible values.
LeftRequiredVariantThe horizontal position of the WordArt.
TopRequiredVariantThe vertical position of the WordArt.

Return Value

Shape

Remarks

The FontBold parameter value can be one of the following MsoTriState constants declared in the Microsoft Office type library.

ConstantDescription
msoFalseNone of the characters in the WordArt are formatted as bold.
msoTriStateMixedReturn value indicating that the WordArt contains some text formatted as bold and some text not formatted as bold.
msoTriStateToggleSet value that switches between msoTrue and msoFalse.
msoTrueAll characters in the WordArt are formatted as bold.

The FontItalic parameter value can be one of the following MsoTriState constants declared in the Microsoft Office type library.

ConstantDescription
msoFalseNone of the characters in the WordArt are formatted as italic.
msoTriStateMixedReturn value indicating that the WordArt contains some text formatted as italic and some text not formatted as italic.
msoTriStateToggleSet value that switches between msoTrue and msoFalse.
msoTrueAll characters in the WordArt are formatted as italic.
© 2018 Microsoft