TextEffectFormat Class

Contains properties and methods that apply to WordArt objects.
Inheritance Hierarchy
SystemObject
  Aspose.Cells.DrawingTextEffectFormat

Namespace:  Aspose.Cells.Drawing
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.10.0.0 (20.10)
Syntax
public class TextEffectFormat

The TextEffectFormat type exposes the following members.

Properties
  NameDescription
Public propertyFontBold
Indicates whether font is bold.
Public propertyFontItalic
Indicates whether font is italic.
Public propertyFontName
The name of the font used in the WordArt.
Public propertyFontSize
The size (in points) of the font used in the WordArt.
Public propertyPresetShape
Gets and sets the preset shape type.
Public propertyRotatedChars
If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape.
Public propertyText
The text in the WordArt.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetTextEffect
Sets the preset text effect.
Public methodToString (Inherited from Object.)
Examples
[C#]

//Instantiating a Workbook object
Workbook workbook = new Workbook();
Shapes shapes = workbook.Worksheets[0].Shapes;
shapes.AddTextEffect(MsoPresetTextEffect.TextEffect1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200);
TextEffectFormat textEffectFormat = shapes[0].TextEffect;
textEffectFormat.SetTextEffect(MsoPresetTextEffect.TextEffect10);
workbook.Save("C:\\Book1.xls");

[Visual Basic]

'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
Dim shapes As Shapes = workbook.Worksheets(0).Shapes
shapes.AddTextEffect(MsoPresetTextEffect.TextEffect1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200)
Dim textEffectFormat As TextEffectFormat = shapes(0).TextEffect
TextEffectFormat.SetTextEffect(MsoPresetTextEffect.TextEffect10)
workbook.Save("C:\\Book1.xls")
See Also