Aspose::Cells::Drawing::TextEffectFormat class

TextEffectFormat class

Contains properties and methods that apply to WordArt objects.

class TextEffectFormat

Methods

MethodDescription
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() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator 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

FieldDescription
_implThe 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