Class TextEffectFormat
Contents
[
Hide
]TextEffectFormat class
Contains properties and methods that apply to WordArt objects.
public class TextEffectFormat
Properties
Name | Description |
---|---|
FontBold { get; set; } | Indicates whether font is bold. |
FontItalic { get; set; } | Indicates whether font is italic. |
FontName { get; set; } | The name of the font used in the WordArt. |
FontSize { get; set; } | The size (in points) of the font used in the WordArt. |
PresetShape { get; set; } | Gets and sets the preset shape type. |
RotatedChars { get; set; } | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
Text { get; set; } | The text in the WordArt. |
Methods
Name | Description |
---|---|
SetTextEffect(MsoPresetTextEffect) | Sets the preset text effect. |
Examples
[C#]
//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");
[Visual Basic]
'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")
See Also
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells