Aspose::Cells::Drawing::ShapeCollection::AddTextEffect method
Contents
[
Hide
]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)
Parameter | Type | Description |
---|---|---|
effect | MsoPresetTextEffect | The mso preset text effect type. |
text | const U16String& | The WordArt text. |
fontName | const U16String& | The font name. |
size | int32_t | The font size |
fontBold | bool | Indicates whether font is bold. |
fontItalic | bool | Indicates whether font is italic. |
upperLeftRow | int32_t | Upper left row index. |
top | int32_t | Represents the vertical offset of shape from its left row, in unit of pixel. |
upperLeftColumn | int32_t | Upper left column index. |
left | int32_t | Represents the horizontal offset of shape from its left column, in unit of pixel. |
height | int32_t | Represents the height of shape, in unit of pixel. |
width | int32_t | Represents 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
- Class Shape
- Enum MsoPresetTextEffect
- Class Vector
- Class U16String
- Class ShapeCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++
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)
Parameter | Type | Description |
---|---|---|
effect | MsoPresetTextEffect | The mso preset text effect type. |
text | const char16_t* | The WordArt text. |
fontName | const char16_t* | The font name. |
size | int32_t | The font size |
fontBold | bool | Indicates whether font is bold. |
fontItalic | bool | Indicates whether font is italic. |
upperLeftRow | int32_t | Upper left row index. |
top | int32_t | Represents the vertical offset of shape from its left row, in unit of pixel. |
upperLeftColumn | int32_t | Upper left column index. |
left | int32_t | Represents the horizontal offset of shape from its left column, in unit of pixel. |
height | int32_t | Represents the height of shape, in unit of pixel. |
width | int32_t | Represents 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
- Class Shape
- Enum MsoPresetTextEffect
- Class Vector
- Class ShapeCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++