## TextStyle class

Describes PUB text style

```csharp
public class TextStyle : BaseStyle
```

## Constructors

| Name | Description |
| --- | --- |
| [TextStyle](textstyle/)() | Constructor |

## Properties

| Name | Description |
| --- | --- |
| [ColorIndex](../../aspose.pub/textstyle/colorindex/) { get; } | Gets index of color in Document.Colors array |
| [FontIndex](../../aspose.pub/textstyle/fontindex/) { get; } | Gets index of font name in Document.FontNames array |
| [IsAllCapsMode](../../aspose.pub/textstyle/isallcapsmode/) { get; } | Is all caps mode enabled |
| [IsBold](../../aspose.pub/textstyle/isbold/) { get; } | Is text bold |
| [IsEmboss](../../aspose.pub/textstyle/isemboss/) { get; } | Is text embossed |
| [IsEmpty](../../aspose.pub/basestyle/isempty/) { get; } | Is style not initialized |
| [IsEngrave](../../aspose.pub/textstyle/isengrave/) { get; } | Is text engraved |
| [IsItalic](../../aspose.pub/textstyle/isitalic/) { get; } | Is text italic |
| [IsOutline](../../aspose.pub/textstyle/isoutline/) { get; } | Is text outlined |
| [IsShadow](../../aspose.pub/textstyle/isshadow/) { get; } | Is text shadowed |
| [IsSmallCapsMode](../../aspose.pub/textstyle/issmallcapsmode/) { get; } | Is small caps mode enabled |
| [Locale](../../aspose.pub/textstyle/locale/) { get; } | Locale identifier |
| [RawTextSize](../../aspose.pub/textstyle/rawtextsize/) { get; } | Size of text in PUB metrics(in EMUs) |
| [ScaleValue](../../aspose.pub/textstyle/scalevalue/) { get; } | Value of scale |
| [SuperscriptType](../../aspose.pub/textstyle/superscripttype/) { get; } | Type of superscript |
| [UnderlineType](../../aspose.pub/textstyle/underlinetype/) { get; } | Underline type for text |

## Methods

| Name | Description |
| --- | --- |
| [CalculateTextSize](../../aspose.pub/textstyle/calculatetextsize/)() | Calculates text size in points |
| [SetColorIndex](../../aspose.pub/textstyle/setcolorindex/)(int) | Sets index of color in Document.Colors array |
| [SetFontIndex](../../aspose.pub/textstyle/setfontindex/)(int) | Sets index of font name in Document.FontNames array |
| [SetIsAllCapsMode](../../aspose.pub/textstyle/setisallcapsmode/)(bool) | Enables/disables all caps mode for text |
| [SetIsBold](../../aspose.pub/textstyle/setisbold/)(bool) | Sets is text bold |
| [SetIsEmboss](../../aspose.pub/textstyle/setisemboss/)(bool) | Sets is text embossed |
| [SetIsEngrave](../../aspose.pub/textstyle/setisengrave/)(bool) | Sets is text engraved |
| [SetIsItalic](../../aspose.pub/textstyle/setisitalic/)(bool) | Sets is text italic |
| [SetIsOutline](../../aspose.pub/textstyle/setisoutline/)(bool) | Sets is text outlined |
| [SetIsShadow](../../aspose.pub/textstyle/setisshadow/)(bool) | Sets is text shadowed |
| [SetIsSmallCapsMode](../../aspose.pub/textstyle/setissmallcapsmode/)(bool) | Enables/disables small caps mode for text |
| [SetLocale](../../aspose.pub/textstyle/setlocale/)(int) | Sets locale identifier |
| [SetRawTextSize](../../aspose.pub/textstyle/setrawtextsize/)(int) | Sets size of text in PUB metrics(in EMUs) |
| [SetScaleValue](../../aspose.pub/textstyle/setscalevalue/)(double) | Sets value of scale |
| [SetSuperscriptType](../../aspose.pub/textstyle/setsuperscripttype/)(SuperscriptType) | Sets type of superscript |
| [SetUnderlineType](../../aspose.pub/textstyle/setunderlinetype/)(UnderlineType) | Sets underline type for text |

### See Also

* class [BaseStyle](../basestyle/)
* namespace [Aspose.Pub](../../aspose.pub/)
* assembly [Aspose.PUB](../../)


