## TextStyle class


Describes PUB text style.

```cpp
class TextStyle : public Aspose::Pub::BaseStyle
```

## Methods

| Method | Description |
| --- | --- |
| [CalculateTextSize](./calculatetextsize/)() | Calculates text size in points. |
| [get_ColorIndex](./get_colorindex/)() const | Gets index of color in Document.Colors array. |
| [get_FontIndex](./get_fontindex/)() const | Gets index of font name in Document.FontNames array. |
| [get_IsAllCapsMode](./get_isallcapsmode/)() const | Is all caps mode enabled. |
| [get_IsBold](./get_isbold/)() const | Is text bold. |
| [get_IsEmboss](./get_isemboss/)() const | Is text embossed. |
| [get_IsEngrave](./get_isengrave/)() const | Is text engraved. |
| [get_IsItalic](./get_isitalic/)() const | Is text italic. |
| [get_IsOutline](./get_isoutline/)() const | Is text outlined. |
| [get_IsShadow](./get_isshadow/)() const | Is text shadowed. |
| [get_IsSmallCapsMode](./get_issmallcapsmode/)() const | Is small caps mode enabled. |
| [get_Locale](./get_locale/)() const | Locale identifier. |
| [get_RawTextSize](./get_rawtextsize/)() const | Size of text in PUB metrics(in EMUs) |
| [get_ScaleValue](./get_scalevalue/)() const | Value of scale. |
| [get_SuperscriptType](./get_superscripttype/)() const | Type of superscript. |
| [get_UnderlineType](./get_underlinetype/)() const | Underline type for text. |
| [SetColorIndex](./setcolorindex/)(int32_t) | Sets index of color in Document.Colors array. |
| [SetFontIndex](./setfontindex/)(int32_t) | Sets index of font name in Document.FontNames array. |
| [SetIsAllCapsMode](./setisallcapsmode/)(bool) | Enables/disables all caps mode for text. |
| [SetIsBold](./setisbold/)(bool) | Sets is text bold. |
| [SetIsEmboss](./setisemboss/)(bool) | Sets is text embossed. |
| [SetIsEngrave](./setisengrave/)(bool) | Sets is text engraved. |
| [SetIsItalic](./setisitalic/)(bool) | Sets is text italic. |
| [SetIsOutline](./setisoutline/)(bool) | Sets is text outlined. |
| [SetIsShadow](./setisshadow/)(bool) | Sets is text shadowed. |
| [SetIsSmallCapsMode](./setissmallcapsmode/)(bool) | Enables/disables small caps mode for text. |
| [SetLocale](./setlocale/)(int32_t) | Sets locale identifier. |
| [SetRawTextSize](./setrawtextsize/)(int32_t) | Sets size of text in PUB metrics(in EMUs) |
| [SetScaleValue](./setscalevalue/)(double) | Sets value of scale. |
| [SetSuperscriptType](./setsuperscripttype/)(Aspose::Pub::SuperscriptType) | Sets type of superscript. |
| [SetUnderlineType](./setunderlinetype/)(Aspose::Pub::UnderlineType) | Sets underline type for text. |
| [TextStyle](./textstyle/)() | Constructor. |
## See Also

* Class [BaseStyle](../basestyle/)
* Namespace [Aspose::Pub](../)
* Library [Aspose.PUB for C++](../../)
