FontSetting
Contents
[
Hide
]FontSetting class
Represents a range of characters within the cell text.
Constructors
| Name | Description |
|---|---|
| FontSetting |
Properties
| Name | Type | Description |
|---|---|---|
| Type | int | Gets the type of text node. The value of the property is TextNodeType integer constant. |
| StartIndex | int | Gets the start index of the characters. |
| Length | int | Gets the length of the characters. |
| Font | Font | Returns the font of this object. |
| TextOptions | TextOptions | Returns the text options. |
Methods
| Name | Description |
|---|---|
| setWordArtStyle | Sets the preset WordArt style. |
Only for the text of shape/chart. |
FontSetting(startIndex, length, sheets)
| Parameter | Type | Description |
|---|---|---|
| startIndex | int | |
| length | int | |
| sheets | WorksheetCollection |
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.
| Parameter | Type | Description |
|---|---|---|
| style | int | A PresetWordArtStyle value. The preset WordArt style. |