Aspose::Cells::Drawing::TextEffectFormat class
Contents
[
Hide
]TextEffectFormat class
Contains properties and methods that apply to WordArt objects.
class TextEffectFormat
Methods
Method | Description |
---|---|
GetFontBold() | Indicates whether font is bold. |
GetFontItalic() | Indicates whether font is italic. |
GetFontName() | The name of the font used in the WordArt. |
GetFontSize() | The size (in points) of the font used in the WordArt. |
GetPresetShape() | Gets and sets the preset shape type. |
GetRotatedChars() | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
GetText() | The text in the WordArt. |
IsNull() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const TextEffectFormat& src) | operator= |
SetFontBold(bool value) | Indicates whether font is bold. |
SetFontItalic(bool value) | Indicates whether font is italic. |
SetFontName(const U16String& value) | The name of the font used in the WordArt. |
SetFontName(const char16_t* value) | The name of the font used in the WordArt. |
SetFontSize(int32_t value) | The size (in points) of the font used in the WordArt. |
SetPresetShape(MsoPresetTextEffectShape value) | Gets and sets the preset shape type. |
SetRotatedChars(bool value) | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
SetText(const U16String& value) | The text in the WordArt. |
SetText(const char16_t* value) | The text in the WordArt. |
SetTextEffect(MsoPresetTextEffect effect) | Sets the preset text effect. |
TextEffectFormat(TextEffectFormat_Impl* impl) | Constructs from an implementation object. |
TextEffectFormat(const TextEffectFormat& src) | Copy constructor. |
~TextEffectFormat() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
ShapeCollection shapes = workbook.GetWorksheets().Get(0).GetShapes();
shapes.AddTextEffect(MsoPresetTextEffect::TextEffect1, u"Aspose", u"Arial", 30, false, false, 0, 0, 0, 0, 100, 200);
TextEffectFormat textEffectFormat = shapes.Get(0).GetTextEffect();
textEffectFormat.SetTextEffect(MsoPresetTextEffect::TextEffect10);
workbook.Save(u"Book1.xls");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++