TextState

Overview

TextState is a class in Aspose.PDF FOSS for C++.

The TextState class provides getters and setters for font, font size, foreground/background/stroking colors, and text decorations such as underline, strike‑out, subscript, and superscript.

This class declares 33 methods for TextState objects in C++ programs. Available methods include: BackgroundColor, CharacterSpacing, Font, FontSize, ForegroundColor, HorizontalAlignment, HorizontalScaling, Invisible, LineSpacing, MeasureString, StrikeOut, StrokingColor, and 6 additional methods. Public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.

Methods

SignatureDescription
TextState()Calls TextState on this TextState instance.
~TextState()Calls ~TextState on this TextState instance.
Font() → Aspose::Pdf::Text::FontCalls Font on this TextState instance.
Font(value: Aspose::Pdf::Text::Font)Calls Font(value) on this TextState instance.
FontSize() → floatCalls FontSize on this TextState instance.
FontSize(value: float)Calls FontSize(value) on this TextState instance.
ForegroundColor() → Aspose::Pdf::ColorCalls ForegroundColor on this TextState instance.
ForegroundColor(value: Aspose::Pdf::Color)Calls ForegroundColor(value) on this TextState instance.
BackgroundColor() → Aspose::Pdf::ColorCalls BackgroundColor on this TextState instance.
BackgroundColor(value: Aspose::Pdf::Color)Calls BackgroundColor(value) on this TextState instance.
StrokingColor() → Aspose::Pdf::ColorCalls StrokingColor on this TextState instance.
StrokingColor(value: Aspose::Pdf::Color)Calls StrokingColor(value) on this TextState instance.
Underline() → boolCalls Underline on this TextState instance.
Underline(value: bool)Calls Underline(value) on this TextState instance.
StrikeOut() → boolCalls StrikeOut on this TextState instance.
StrikeOut(value: bool)Calls StrikeOut(value) on this TextState instance.
Subscript() → boolCalls Subscript on this TextState instance.
Subscript(value: bool)Calls Subscript(value) on this TextState instance.
Superscript() → boolCalls Superscript on this TextState instance.
Superscript(value: bool)Calls Superscript(value) on this TextState instance.
Invisible() → boolCalls Invisible on this TextState instance.
Invisible(value: bool)Calls Invisible(value) on this TextState instance.
CharacterSpacing() → floatCalls CharacterSpacing on this TextState instance.
CharacterSpacing(value: float)Calls CharacterSpacing(value) on this TextState instance.
WordSpacing() → floatCalls WordSpacing on this TextState instance.
WordSpacing(value: float)Calls WordSpacing(value) on this TextState instance.
LineSpacing() → floatCalls LineSpacing on this TextState instance.
LineSpacing(value: float)Calls LineSpacing(value) on this TextState instance.
HorizontalScaling() → floatCalls HorizontalScaling on this TextState instance.
HorizontalScaling(value: float)Calls HorizontalScaling(value) on this TextState instance.
HorizontalAlignment() → Aspose::Pdf::HorizontalAlignmentCalls HorizontalAlignment on this TextState instance.
HorizontalAlignment(value: Aspose::Pdf::HorizontalAlignment)Calls HorizontalAlignment(value) on this TextState instance.
MeasureString(str: std::string) → doubleCalls MeasureString(str) on this TextState instance.

See Also

 English