TextOptions
TextOptions class
Represents the text options.
Properties
| Name | Type | Description |
|---|---|---|
| Name | String | Gets and sets the name of the shape. |
| LanguageCode | int | Gets and sets the user interface language. The value of the property is CountryCode integer constant. |
| LatinName | String | Gets and sets the latin name. |
| FarEastName | String | Gets and sets the FarEast name. |
| Fill | FillFormat | Represents the fill format of the text. |
| Outline | LineFormat | Represents the outline format of the text. |
| Shadow | ShadowEffect | Represents a ShadowEffect object that specifies shadow effect for the chart element or shape. |
| UnderlineColor | CellsColor | Gets or sets the color of underline. |
| Kerning | float | Specifies the minimum font size at which character kerning will occur for this text run. |
| Spacing | float | Specifies the spacing between characters within a text run. |
| IsNormalizeHeights | boolean | |
| CapsType | int | The value of the property is TextCapsType integer constant. |
| Charset | int | 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. |
| StrikeType | int | 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 | float | 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 | int | Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant. |
| DoubleSize | float | Gets and sets the double size of the font. |
| Size | int | 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 | int | Gets and sets the color with a 32-bit ARGB value. |
| SchemeType | int | 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. |
TextOptions.Name property
Gets and sets the name of the shape.
Type: String
TextOptions.LanguageCode property
Gets and sets the user interface language. The value of the property is CountryCode integer constant.
Type: int
TextOptions.LatinName property
Gets and sets the latin name.
Type: String
TextOptions.FarEastName property
Gets and sets the FarEast name.
Type: String
TextOptions.Fill property
Represents the fill format of the text.
Type: FillFormat
TextOptions.Outline property
Represents the outline format of the text.
Type: LineFormat
TextOptions.Shadow property
Represents a ShadowEffect object that specifies shadow effect for the chart element or shape.
Type: ShadowEffect
TextOptions.UnderlineColor property
Gets or sets the color of underline.
Type: CellsColor
TextOptions.Kerning property
Specifies the minimum font size at which character kerning will occur for this text run.
Type: float
TextOptions.Spacing property
Specifies the spacing between characters within a text run.
Type: float
TextOptions.IsNormalizeHeights property
Type: boolean
TextOptions.CapsType property
The value of the property is TextCapsType integer constant.
Type: int
TextOptions.Charset property
Represent the character set.
Type: int
TextOptions.IsItalic property
Gets or sets a value indicating whether the font is italic.
Type: boolean
TextOptions.IsBold property
Gets or sets a value indicating whether the font is bold.
Type: boolean
TextOptions.StrikeType property
Gets the strike type of the text. The value of the property is TextStrikeType integer constant.
Type: int
TextOptions.IsStrikeout property
Gets or sets a value indicating whether the font is single strikeout.
Type: boolean
TextOptions.ScriptOffset property
Gets and sets the script offset,in unit of percentage
Type: float
TextOptions.IsSuperscript property
Gets or sets a value indicating whether the font is super script.
Type: boolean
TextOptions.IsSubscript property
Gets or sets a value indicating whether the font is subscript.
Type: boolean
TextOptions.Underline property
Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.
Type: int
TextOptions.DoubleSize property
Gets and sets the double size of the font.
Type: float
TextOptions.Size property
Gets or sets the size of the font.
Type: int
TextOptions.ThemeColor property
Gets and sets the theme color. If the font color is not a theme color, NULL will be returned.
Type: ThemeColor
TextOptions.Color property
Gets or sets the com.aspose.cells.Color of the font.
Type: Color
TextOptions.ArgbColor property
Gets and sets the color with a 32-bit ARGB value.
Type: int
TextOptions.SchemeType property
Gets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant.
Type: int
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.