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 provides 33 methods for working with TextState objects in C++ programs.
Available methods include: BackgroundColor, CharacterSpacing, Font, FontSize, ForegroundColor, HorizontalAlignment, HorizontalScaling, Invisible, LineSpacing, MeasureString, StrikeOut, StrokingColor, and 6 additional methods.
All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
TextState() | Calls TextState on this TextState instance. |
~TextState() | Calls ~TextState on this TextState instance. |
Font() → Aspose::Pdf::Text::Font | Calls Font on this TextState instance. |
Font(value: Aspose::Pdf::Text::Font) | Calls Font(value) on this TextState instance. |
FontSize() → float | Calls FontSize on this TextState instance. |
FontSize(value: float) | Calls FontSize(value) on this TextState instance. |
ForegroundColor() → Aspose::Pdf::Color | Calls ForegroundColor on this TextState instance. |
ForegroundColor(value: Aspose::Pdf::Color) | Calls ForegroundColor(value) on this TextState instance. |
BackgroundColor() → Aspose::Pdf::Color | Calls BackgroundColor on this TextState instance. |
BackgroundColor(value: Aspose::Pdf::Color) | Calls BackgroundColor(value) on this TextState instance. |
StrokingColor() → Aspose::Pdf::Color | Calls StrokingColor on this TextState instance. |
StrokingColor(value: Aspose::Pdf::Color) | Calls StrokingColor(value) on this TextState instance. |
Underline() → bool | Calls Underline on this TextState instance. |
Underline(value: bool) | Calls Underline(value) on this TextState instance. |
StrikeOut() → bool | Calls StrikeOut on this TextState instance. |
StrikeOut(value: bool) | Calls StrikeOut(value) on this TextState instance. |
Subscript() → bool | Calls Subscript on this TextState instance. |
Subscript(value: bool) | Calls Subscript(value) on this TextState instance. |
Superscript() → bool | Calls Superscript on this TextState instance. |
Superscript(value: bool) | Calls Superscript(value) on this TextState instance. |
Invisible() → bool | Calls Invisible on this TextState instance. |
Invisible(value: bool) | Calls Invisible(value) on this TextState instance. |
CharacterSpacing() → float | Calls CharacterSpacing on this TextState instance. |
CharacterSpacing(value: float) | Calls CharacterSpacing(value) on this TextState instance. |
WordSpacing() → float | Calls WordSpacing on this TextState instance. |
WordSpacing(value: float) | Calls WordSpacing(value) on this TextState instance. |
LineSpacing() → float | Calls LineSpacing on this TextState instance. |
LineSpacing(value: float) | Calls LineSpacing(value) on this TextState instance. |
HorizontalScaling() → float | Calls HorizontalScaling on this TextState instance. |
HorizontalScaling(value: float) | Calls HorizontalScaling(value) on this TextState instance. |
HorizontalAlignment() → Aspose::Pdf::HorizontalAlignment | Calls HorizontalAlignment on this TextState instance. |
HorizontalAlignment(value: Aspose::Pdf::HorizontalAlignment) | Calls HorizontalAlignment(value) on this TextState instance. |
MeasureString(str: std::string) → double | Calls MeasureString(str) on this TextState instance. |