FontSetting

FontSetting class

Represents a range of characters within the cell text.

class FontSetting;

Constructors

NameDescription
constructor(number, number, WorksheetCollection)

Methods

MethodDescription
getStartIndex()Gets the start index of the characters.
getLength()Gets the length of the characters.
getFont()Returns the font of this object.
getTextOptions()Returns the text options.
setWordArtStyle(PresetWordArtStyle)Sets the preset WordArt style.
getType()Gets the type of text node.

constructor(number, number, WorksheetCollection)

constructor(startIndex: number, length: number, sheets: WorksheetCollection);

Parameters:

ParameterTypeDescription
startIndexnumber
lengthnumber
sheetsWorksheetCollection

getStartIndex()

Gets the start index of the characters.

getStartIndex() : number;

getLength()

Gets the length of the characters.

getLength() : number;

getFont()

Returns the font of this object.

getFont() : Font;

Returns

Font

getTextOptions()

Returns the text options.

getTextOptions() : TextOptions;

Returns

TextOptions

setWordArtStyle(PresetWordArtStyle)

Sets the preset WordArt style.

setWordArtStyle(style: PresetWordArtStyle) : void;

Parameters:

ParameterTypeDescription
stylePresetWordArtStyleThe preset WordArt style.

Remarks

Only for the text of shape/chart.

getType()

Gets the type of text node.

getType() : TextNodeType;

Returns

TextNodeType