FontSetting

FontSetting class

Represents a range of characters within the cell text.

Constructors

NameDescription
FontSetting

Properties

NameTypeDescription
TypeNumberGets the type of text node. The value of the property is TextNodeType integer constant.
StartIndexNumberGets the start index of the characters.
LengthNumberGets the length of the characters.
FontFontReturns the font of this object.
TextOptionsTextOptionsReturns the text options.

Methods

NameDescription
setWordArtStyleSets the preset WordArt style.

Only for the text of shape/chart. |

FontSetting(startIndex, length, sheets)

ParameterTypeDescription
startIndexNumber
lengthNumber
sheetsWorksheetCollection

FontSetting.Type property

Gets the type of text node. The value of the property is TextNodeType integer constant.

Type: Number

FontSetting.StartIndex property

Gets the start index of the characters.

Type: Number

FontSetting.Length property

Gets the length of the characters.

Type: Number

FontSetting.Font property

Returns the font of this object.

Type: Font

FontSetting.TextOptions property

Returns the text options.

Type: TextOptions

setWordArtStyle(style)

Sets the preset WordArt style.

Only for the text of shape/chart.

ParameterTypeDescription
styleNumberA PresetWordArtStyle value. The preset WordArt style.