TextEffectFormat

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

PropertyTypeDescription
textstringThe text in the WordArt.
fontNamestringThe name of the font used in the WordArt.
fontBoldbooleanIndicates whether font is bold.
fontItalicbooleanIndicates whether font is italic.
rotatedCharsbooleanIf true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
fontSizenumberThe size (in points) of the font used in the WordArt.
presetShapeMsoPresetTextEffectShapeGets and sets the preset shape type.

Methods

MethodDescription
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:

ParameterTypeDescription
effectMsoPresetTextEffectThe preset text effect.