TextEffectFormat
Contents
[
Hide
]TextEffectFormat class
Contains properties and methods that apply to WordArt objects.
class TextEffectFormat;
Example
const { Workbook, MsoPresetTextEffect, SaveFormat } = AsposeCells;
//Instantiating a Workbook object
var workbook = new Workbook();
var shapes = workbook.worksheets.get(0).shapes;
shapes.addTextEffect(MsoPresetTextEffect.TextEffect1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200);
var textEffectFormat = shapes.get(0).textEffect;
textEffectFormat.setTextEffect(MsoPresetTextEffect.TextEffect10);
var uint8Array = workbook.save(SaveFormat.Xlsx);
Properties
Property | Type | Description |
---|---|---|
text | string | The text in the WordArt. |
fontName | string | The name of the font used in the WordArt. |
fontBold | boolean | Indicates whether font is bold. |
fontItalic | boolean | Indicates whether font is italic. |
rotatedChars | boolean | If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape. |
fontSize | number | The size (in points) of the font used in the WordArt. |
presetShape | MsoPresetTextEffectShape | Gets and sets the preset shape type. |
Methods
Method | Description |
---|---|
setTextEffect(MsoPresetTextEffect) | Sets the preset text effect. |
text
The text in the WordArt.
text : string;
fontName
The name of the font used in the WordArt.
fontName : string;
fontBold
Indicates whether font is bold.
fontBold : boolean;
fontItalic
Indicates whether font is italic.
fontItalic : boolean;
rotatedChars
If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
rotatedChars : boolean;
fontSize
The size (in points) of the font used in the WordArt.
fontSize : number;
presetShape
Gets and sets the preset shape type.
presetShape : MsoPresetTextEffectShape;
setTextEffect(MsoPresetTextEffect)
Sets the preset text effect.
setTextEffect(effect: MsoPresetTextEffect) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
effect | MsoPresetTextEffect | The preset text effect. |