TextOptions

TextOptions class

Represents the text options.

Properties

NameTypeDescription
NameStringGets and sets the name of the shape.
LanguageCodeintGets 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.
KerningfloatSpecifies the minimum font size at which character kerning will occur for this text run.
SpacingfloatSpecifies the spacing between characters within a text run.
IsNormalizeHeightsboolean
CapsTypeintThe value of the property is TextCapsType integer constant.
CharsetintRepresent 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.
StrikeTypeintGets 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.
ScriptOffsetfloatGets 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.
UnderlineintGets or sets the font underline type. The value of the property is FontUnderlineType integer constant.
DoubleSizefloatGets and sets the double size of the font.
SizeintGets 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.
ArgbColorintGets and sets the color with a 32-bit ARGB value.
SchemeTypeintGets 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: 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.

ParameterTypeDescription
fontFontCompared font object.

Returns: True if equal to the compared font object.

toString()

Returns a string represents the current Cell object.