Aspose::Pub::TextStyle class

TextStyle class

Describes PUB text style.

class TextStyle : public Aspose::Pub::BaseStyle

Methods

MethodDescription
CalculateTextSize()Calculates text size in points.
get_ColorIndex() constGets index of color in Document.Colors array.
get_FontIndex() constGets index of font name in Document.FontNames array.
get_IsAllCapsMode() constIs all caps mode enabled.
get_IsBold() constIs text bold.
get_IsEmboss() constIs text embossed.
get_IsEngrave() constIs text engraved.
get_IsItalic() constIs text italic.
get_IsOutline() constIs text outlined.
get_IsShadow() constIs text shadowed.
get_IsSmallCapsMode() constIs small caps mode enabled.
get_Locale() constLocale identifier.
get_RawTextSize() constSize of text in PUB metrics(in EMUs)
get_ScaleValue() constValue of scale.
get_SuperscriptType() constType of superscript.
get_UnderlineType() constUnderline type for text.
SetColorIndex(int32_t)Sets index of color in Document.Colors array.
SetFontIndex(int32_t)Sets index of font name in Document.FontNames array.
SetIsAllCapsMode(bool)Enables/disables all caps mode for text.
SetIsBold(bool)Sets is text bold.
SetIsEmboss(bool)Sets is text embossed.
SetIsEngrave(bool)Sets is text engraved.
SetIsItalic(bool)Sets is text italic.
SetIsOutline(bool)Sets is text outlined.
SetIsShadow(bool)Sets is text shadowed.
SetIsSmallCapsMode(bool)Enables/disables small caps mode for text.
SetLocale(int32_t)Sets locale identifier.
SetRawTextSize(int32_t)Sets size of text in PUB metrics(in EMUs)
SetScaleValue(double)Sets value of scale.
SetSuperscriptType(Aspose::Pub::SuperscriptType)Sets type of superscript.
SetUnderlineType(Aspose::Pub::UnderlineType)Sets underline type for text.
TextStyle()Constructor.

See Also