Class TextEffectFormat
Class TextEffectFormat
Namespace: Aspose.Cells.Drawing
Assembly: Aspose.Cells.dll (25.2.0)
Contains properties and methods that apply to WordArt objects.
public class TextEffectFormat
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
//Instantiating a Workbook object
Workbook workbook = new Workbook();
Aspose.Cells.Drawing.ShapeCollection 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("Book1.xls");
'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
Dim shapes As Aspose.Cells.Drawing.ShapeCollection = 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("Book1.xls")
Properties
FontBold
Indicates whether font is bold.
public bool FontBold { get; set; }
Property Value
FontItalic
Indicates whether font is italic.
public bool FontItalic { get; set; }
Property Value
FontName
The name of the font used in the WordArt.
public string FontName { get; set; }
Property Value
FontSize
The size (in points) of the font used in the WordArt.
public int FontSize { get; set; }
Property Value
PresetShape
Gets and sets the preset shape type.
public MsoPresetTextEffectShape PresetShape { get; set; }
Property Value
RotatedChars
If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
public bool RotatedChars { get; set; }
Property Value
Text
The text in the WordArt.
public string Text { get; set; }
Property Value
Methods
SetTextEffect(MsoPresetTextEffect)
Sets the preset text effect.
public void SetTextEffect(MsoPresetTextEffect effect)
Parameters
effect
MsoPresetTextEffect
The preset text effect.