TextOptions

TextOptions class

Represents the text options.

Properties

NameTypeDescription
NameStringGets and sets the name of the shape.
LanguageCodeNumberGets and sets the user interface language. The value of the property is CountryCode integer constant.
LatinNameStringGets and sets the latin name.
FarEastNameStringGets and sets the FarEast name.
FillFillFormatRepresents the fill format of the text.
OutlineLineFormatRepresents the outline format of the text.
ShadowShadowEffectRepresents a ShadowEffect object that specifies shadow effect for the chart element or shape.
UnderlineColorCellsColorGets or sets the color of underline.
KerningNumberSpecifies the minimum font size at which character kerning will occur for this text run.
SpacingNumberSpecifies the spacing between characters within a text run.
IsNormalizeHeightsboolean
CapsTypeNumberThe value of the property is TextCapsType integer constant.
CharsetNumberRepresent the character set.
IsItalicbooleanGets or sets a value indicating whether the font is italic.
IsBoldbooleanGets or sets a value indicating whether the font is bold.
StrikeTypeNumberGets the strike type of the text. The value of the property is TextStrikeType integer constant.
IsStrikeoutbooleanGets or sets a value indicating whether the font is single strikeout.
ScriptOffsetNumberGets and sets the script offset,in unit of percentage
IsSuperscriptbooleanGets or sets a value indicating whether the font is super script.
IsSubscriptbooleanGets or sets a value indicating whether the font is subscript.
UnderlineNumberGets or sets the font underline type. The value of the property is FontUnderlineType integer constant.
DoubleSizeNumberGets and sets the double size of the font.
SizeNumberGets or sets the size of the font.
ThemeColorThemeColorGets and sets the theme color. If the font color is not a theme color, NULL will be returned.
ColorColorGets or sets the com.aspose.cells.Color of the font.
ArgbColorNumberGets and sets the color with a 32-bit ARGB value.
SchemeTypeNumberGets and sets the scheme type of the font. The value of the property is FontSchemeType integer constant.

Methods

NameDescription
setName
equalsChecks if two fonts are equals.
toStringReturns 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: Number

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: Number

TextOptions.Spacing property

Specifies the spacing between characters within a text run.

Type: Number

TextOptions.IsNormalizeHeights property

Type: boolean

TextOptions.CapsType property

The value of the property is TextCapsType integer constant.

Type: Number

TextOptions.Charset property

Represent the character set.

Type: Number

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: Number

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: Number

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: Number

TextOptions.DoubleSize property

Gets and sets the double size of the font.

Type: Number

TextOptions.Size property

Gets or sets the size of the font.

Type: Number

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: Number

TextOptions.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.

ParameterTypeDescription
fontFontCompared font object.

Returns: True if equal to the compared font object.

toString()

Returns a string represents the current Cell object.