TextEffectFormat

TextEffectFormat class

Contains properties and methods that apply to WordArt objects.

class TextEffectFormat;

Example

const { Workbook, MsoPresetTextEffect } = require("aspose.cells.node");

//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);
workbook.save("output/TextEffectFormat.xls");

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
getText()@deprecated. Please use the ’text’ property instead. The text in the WordArt.
setText(string)@deprecated. Please use the ’text’ property instead. The text in the WordArt.
getFontName()@deprecated. Please use the ‘fontName’ property instead. The name of the font used in the WordArt.
setFontName(string)@deprecated. Please use the ‘fontName’ property instead. The name of the font used in the WordArt.
getFontBold()@deprecated. Please use the ‘fontBold’ property instead. Indicates whether font is bold.
setFontBold(boolean)@deprecated. Please use the ‘fontBold’ property instead. Indicates whether font is bold.
getFontItalic()@deprecated. Please use the ‘fontItalic’ property instead. Indicates whether font is italic.
setFontItalic(boolean)@deprecated. Please use the ‘fontItalic’ property instead. Indicates whether font is italic.
getRotatedChars()@deprecated. Please use the ‘rotatedChars’ property instead. If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
setRotatedChars(boolean)@deprecated. Please use the ‘rotatedChars’ property instead. If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
getFontSize()@deprecated. Please use the ‘fontSize’ property instead. The size (in points) of the font used in the WordArt.
setFontSize(number)@deprecated. Please use the ‘fontSize’ property instead. The size (in points) of the font used in the WordArt.
getPresetShape()@deprecated. Please use the ‘presetShape’ property instead. Gets and sets the preset shape type.
setPresetShape(MsoPresetTextEffectShape)@deprecated. Please use the ‘presetShape’ property instead. Gets and sets the preset shape type.
setTextEffect(MsoPresetTextEffect)Sets the preset text effect.
isNull()Checks whether the implementation object is null.

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;

getText()

@deprecated. Please use the ’text’ property instead. The text in the WordArt.

getText() : string;

setText(string)

@deprecated. Please use the ’text’ property instead. The text in the WordArt.

setText(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getFontName()

@deprecated. Please use the ‘fontName’ property instead. The name of the font used in the WordArt.

getFontName() : string;

setFontName(string)

@deprecated. Please use the ‘fontName’ property instead. The name of the font used in the WordArt.

setFontName(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getFontBold()

@deprecated. Please use the ‘fontBold’ property instead. Indicates whether font is bold.

getFontBold() : boolean;

setFontBold(boolean)

@deprecated. Please use the ‘fontBold’ property instead. Indicates whether font is bold.

setFontBold(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getFontItalic()

@deprecated. Please use the ‘fontItalic’ property instead. Indicates whether font is italic.

getFontItalic() : boolean;

setFontItalic(boolean)

@deprecated. Please use the ‘fontItalic’ property instead. Indicates whether font is italic.

setFontItalic(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getRotatedChars()

@deprecated. Please use the ‘rotatedChars’ property instead. If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.

getRotatedChars() : boolean;

setRotatedChars(boolean)

@deprecated. Please use the ‘rotatedChars’ property instead. If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.

setRotatedChars(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getFontSize()

@deprecated. Please use the ‘fontSize’ property instead. The size (in points) of the font used in the WordArt.

getFontSize() : number;

setFontSize(number)

@deprecated. Please use the ‘fontSize’ property instead. The size (in points) of the font used in the WordArt.

setFontSize(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getPresetShape()

@deprecated. Please use the ‘presetShape’ property instead. Gets and sets the preset shape type.

getPresetShape() : MsoPresetTextEffectShape;

Returns

MsoPresetTextEffectShape

setPresetShape(MsoPresetTextEffectShape)

@deprecated. Please use the ‘presetShape’ property instead. Gets and sets the preset shape type.

setPresetShape(value: MsoPresetTextEffectShape) : void;

Parameters:

ParameterTypeDescription
valueMsoPresetTextEffectShapeThe value to set.

setTextEffect(MsoPresetTextEffect)

Sets the preset text effect.

setTextEffect(effect: MsoPresetTextEffect) : void;

Parameters:

ParameterTypeDescription
effectMsoPresetTextEffectThe preset text effect.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;