## TextStyle class


Class represents style of text in annotation.

```cpp
class TextStyle : public System::Object
```

## Methods

| Method | Description |
| --- | --- |
| [get_Alignment](./get_alignment/)() | Gets horizontal alignment of the text. |
| [get_Color](./get_color/)() | [Color](../../aspose.pdf/color/) of the text. |
| [get_FontName](./get_fontname/)() | Name of the font. |
| [get_FontSize](./get_fontsize/)() | Fonst size. |
| [get_HorizontalAlignment](./get_horizontalalignment/)() | [Text](../../aspose.pdf.text/) alignment. Valid values are: [Left](../../aspose.pdf/left/), [Center](../../aspose.pdf/center/), Rigth. |
| [set_Alignment](./set_alignment/)(TextAlignment) | Sets horizontal alignment of the text. |
| [set_Color](./set_color/)(System::Drawing::Color) | [Color](../../aspose.pdf/color/) of the text. |
| [set_FontName](./set_fontname/)(const System::String\&) | Name of the font. |
| [set_FontSize](./set_fontsize/)(double) | Fonst size. |
| [set_HorizontalAlignment](./set_horizontalalignment/)(Aspose::Pdf::HorizontalAlignment) | [Text](../../aspose.pdf.text/) alignment. Valid values are: [Left](../../aspose.pdf/left/), [Center](../../aspose.pdf/center/), Rigth. |
| [ToString](./tostring/)() const override | String representation of [TextStyle](./). |
## See Also

* Class [Object](../../system/object/)
* Namespace [Aspose::Pdf::Annotations](../)
* Library [Aspose.PDF for C++](../../)
