Aspose::Cells::Drawing::ShapeCollection::AddTextEffect method

ShapeCollection::AddTextEffect(MsoPresetTextEffect, const U16String&, const U16String&, int32_t, bool, bool, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) method

Inserts a WordArt object.

Shape Aspose::Cells::Drawing::ShapeCollection::AddTextEffect(MsoPresetTextEffect effect, const U16String &text, const U16String &fontName, int32_t size, bool fontBold, bool fontItalic, int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
ParameterTypeDescription
effectMsoPresetTextEffectThe mso preset text effect type.
textconst U16String&The WordArt text.
fontNameconst U16String&The font name.
sizeint32_tThe font size
fontBoldboolIndicates whether font is bold.
fontItalicboolIndicates whether font is italic.
upperLeftRowint32_tUpper left row index.
topint32_tRepresents the vertical offset of shape from its left row, in unit of pixel.
upperLeftColumnint32_tUpper left column index.
leftint32_tRepresents the horizontal offset of shape from its left column, in unit of pixel.
heightint32_tRepresents the height of shape, in unit of pixel.
widthint32_tRepresents the width of shape, in unit of pixel.

ReturnValue

Returns a Shape object that represents the new WordArt object.

Examples

//add a WordArt
U16String txt = u"WordArt";
U16String fName = u"arial";
Shape wordArt1 = shapes.AddTextEffect(MsoPresetTextEffect::TextEffect10, txt, fName, 18, false, false, 3, 0, 3, 0, 200, 50);

See Also

ShapeCollection::AddTextEffect(MsoPresetTextEffect, const char16_t*, const char16_t*, int32_t, bool, bool, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) method

Inserts a WordArt object.

Shape Aspose::Cells::Drawing::ShapeCollection::AddTextEffect(MsoPresetTextEffect effect, const char16_t *text, const char16_t *fontName, int32_t size, bool fontBold, bool fontItalic, int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
ParameterTypeDescription
effectMsoPresetTextEffectThe mso preset text effect type.
textconst char16_t*The WordArt text.
fontNameconst char16_t*The font name.
sizeint32_tThe font size
fontBoldboolIndicates whether font is bold.
fontItalicboolIndicates whether font is italic.
upperLeftRowint32_tUpper left row index.
topint32_tRepresents the vertical offset of shape from its left row, in unit of pixel.
upperLeftColumnint32_tUpper left column index.
leftint32_tRepresents the horizontal offset of shape from its left column, in unit of pixel.
heightint32_tRepresents the height of shape, in unit of pixel.
widthint32_tRepresents the width of shape, in unit of pixel.

ReturnValue

Returns a Shape object that represents the new WordArt object.

Examples

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

See Also