Aspose::Cells::Drawing::ShapeCollection::AddWordArt method

ShapeCollection::AddWordArt(PresetWordArtStyle, const U16String&, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) method

Adds preset WordArt since Excel 2007.s.

Shape Aspose::Cells::Drawing::ShapeCollection::AddWordArt(PresetWordArtStyle style, const U16String &text, int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
ParameterTypeDescription
stylePresetWordArtStyleThe preset WordArt Style.
textconst U16String&The text.
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

Examples

//add a WordArt
U16String val = u"WordArt";
Shape wordArt2 = shapes.AddWordArt(PresetWordArtStyle::WordArtStyle1, val, 3, 0, 3, 0, 50, 200);

See Also

ShapeCollection::AddWordArt(PresetWordArtStyle, const char16_t*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) method

Adds preset WordArt since Excel 2007.s.

Shape Aspose::Cells::Drawing::ShapeCollection::AddWordArt(PresetWordArtStyle style, const char16_t *text, int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
ParameterTypeDescription
stylePresetWordArtStyleThe preset WordArt Style.
textconst char16_t*The text.
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

Examples

    //add a WordArt
Shape wordArt2 = shapes.AddWordArt(PresetWordArtStyle::WordArtStyle1, u"WordArt", 3, 0, 3, 0, 50, 200);

See Also