ShapeCollection.AddTextEffect

ShapeCollection.AddTextEffect method

Inserts a WordArt object.

public Shape AddTextEffect(MsoPresetTextEffect effect, string text, string fontName, int size, 
    bool fontBold, bool fontItalic, int upperLeftRow, int top, int upperLeftColumn, int left, 
    int height, int width)
ParameterTypeDescription
effectMsoPresetTextEffectThe mso preset text effect type.
textStringThe WordArt text.
fontNameStringThe font name.
sizeInt32The font size
fontBoldBooleanIndicates whether font is bold.
fontItalicBooleanIndicates whether font is italic.
upperLeftRowInt32Upper left row index.
topInt32Represents the vertical offset of shape from its left row, in unit of pixel.
upperLeftColumnInt32Upper left column index.
leftInt32Represents the horizontal offset of shape from its left column, in unit of pixel.
heightInt32Represents the height of shape, in unit of pixel.
widthInt32Represents the width of shape, in unit of pixel.

Return Value

Returns a Shape object that represents the new WordArt object.

Examples


[C#]
//add a WordArt
Shape wordArt1 = shapes.AddTextEffect(MsoPresetTextEffect.TextEffect10, "WordArt", "arial", 18, false, false, 3, 0, 3, 0, 200, 50);

See Also