FontSetting

FontSetting class

Represents a range of characters within the cell text.

Constructors

NameDescription
FontSetting

Properties

NameTypeDescription
TypeintGets the type of text node. The value of the property is TextNodeType integer constant.
StartIndexintGets the start index of the characters.
LengthintGets 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
startIndexint
lengthint
sheetsWorksheetCollection

FontSetting.Type property

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

Type: int

FontSetting.StartIndex property

Gets the start index of the characters.

Type: int

FontSetting.Length property

Gets the length of the characters.

Type: int

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
styleintA PresetWordArtStyle value. The preset WordArt style.