Font
Font class
Encapsulates the font object used in a spreadsheet.
Properties
| Name | Type | Description |
|---|---|---|
| Charset | Number | Represent the character set. |
| IsItalic | boolean | Gets or sets a value indicating whether the font is italic. |
| IsBold | boolean | Gets or sets a value indicating whether the font is bold. |
| CapsType | Number | Gets and sets the text caps type. The value of the property is TextCapsType integer constant. |
| StrikeType | Number | Gets the strike type of the text. The value of the property is TextStrikeType integer constant. |
| IsStrikeout | boolean | Gets or sets a value indicating whether the font is single strikeout. |
| ScriptOffset | Number | Gets and sets the script offset,in unit of percentage |
| IsSuperscript | boolean | Gets or sets a value indicating whether the font is super script. |
| IsSubscript | boolean | Gets or sets a value indicating whether the font is subscript. |
| Underline | Number | Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant. |
| Name | String | Gets or sets the name of the Font . |
| DoubleSize | Number | Gets and sets the double size of the font. |
| Size | Number | Gets or sets the size of the font. |
| ThemeColor | ThemeColor | Gets and sets the theme color. If the font color is not a theme color, NULL will be returned. |
| Color | Color | Gets or sets the com.aspose.cells.Color of the font. |
| ArgbColor | Number | Gets and sets the color with a 32-bit ARGB value. |
| IsNormalizeHeights | boolean | Indicates whether the normalization of height that is to be applied to the text run. |
| SchemeType | Number | Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant. |
Methods
| Name | Description |
|---|---|
| setName | |
| equals | Checks if two fonts are equals. |
| toString | Returns a string represents the current Cell object. |
Font.Charset property
Represent the character set.
Type: Number
Font.IsItalic property
Gets or sets a value indicating whether the font is italic.
Type: boolean
Font.IsBold property
Gets or sets a value indicating whether the font is bold.
Type: boolean
Font.CapsType property
Gets and sets the text caps type. The value of the property is TextCapsType integer constant.
Type: Number
Font.StrikeType property
Gets the strike type of the text. The value of the property is TextStrikeType integer constant.
Type: Number
Font.IsStrikeout property
Gets or sets a value indicating whether the font is single strikeout.
Type: boolean
Font.ScriptOffset property
Gets and sets the script offset,in unit of percentage
Type: Number
Font.IsSuperscript property
Gets or sets a value indicating whether the font is super script.
Type: boolean
Font.IsSubscript property
Gets or sets a value indicating whether the font is subscript.
Type: boolean
Font.Underline property
Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.
Type: Number
Font.Name property
Gets or sets the name of the Font .
Type: String
Font.DoubleSize property
Gets and sets the double size of the font.
Type: Number
Font.Size property
Gets or sets the size of the font.
Type: Number
Font.ThemeColor property
Gets and sets the theme color. If the font color is not a theme color, NULL will be returned.
Type: ThemeColor
Font.Color property
Gets or sets the com.aspose.cells.Color of the font.
Type: Color
Font.ArgbColor property
Gets and sets the color with a 32-bit ARGB value.
Type: Number
Font.IsNormalizeHeights property
Indicates whether the normalization of height that is to be applied to the text run.
Type: boolean
Font.SchemeType property
Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant.
Type: Number
setName(name, type)
equals(font)
Checks if two fonts are equals.
| Parameter | Type | Description |
|---|---|---|
| font | Font | Compared font object. |
Returns: True if equal to the compared font object.
toString()
Returns a string represents the current Cell object.