## TextPath class


Defines the text and formatting of the text path (of a WordArt object). To learn more, visit the [Working with Shapes](https://docs.aspose.com/words/cpp/working-with-shapes/) documentation article.

```cpp
class TextPath : public System::Object
```

## Methods

| Method | Description |
| --- | --- |
| [get_Bold](./get_bold/)() | True if the font is formatted as bold. |
| [get_FitPath](./get_fitpath/)() | Defines whether the text fits the path of a shape. |
| [get_FitShape](./get_fitshape/)() | Defines whether the text fits bounding box of a shape. |
| [get_FontFamily](./get_fontfamily/)() | Defines the family of the textpath font. |
| [get_Italic](./get_italic/)() | True if the font is formatted as italic. |
| [get_Kerning](./get_kerning/)() | Determines whether kerning is turned on. |
| [get_On](./get_on/)() | Defines whether the text is displayed. |
| [get_ReverseRows](./get_reverserows/)() | Determines whether the layout order of rows is reversed. |
| [get_RotateLetters](./get_rotateletters/)() | Determines whether the letters of the text are rotated. |
| [get_SameLetterHeights](./get_sameletterheights/)() | Determines whether all letters will be the same height regardless of initial case. |
| [get_Shadow](./get_shadow/)() | Defines whether a shadow is applied to the text on a text path. |
| [get_Size](./get_size/)() | Defines the size of the font in points. |
| [get_SmallCaps](./get_smallcaps/)() | True if the font is formatted as small capital letters. |
| [get_Spacing](./get_spacing/)() | Defines the amount of spacing for text. 1 means 100%. |
| [get_StrikeThrough](./get_strikethrough/)() | True if the font is formatted as strikethrough text. |
| [get_Text](./get_text/)() | Defines the text of the text path. |
| [get_TextPathAlignment](./get_textpathalignment/)() | Defines the alignment of text. |
| [get_Trim](./get_trim/)() | Determines whether extra space is removed above and below the text. |
| [get_Underline](./get_underline/)() | True if the font is underlined. |
| [get_XScale](./get_xscale/)() | Determines whether a straight textpath will be used instead of the shape path. |
| [GetType](./gettype/)() const override |  |
| [Is](./is/)(const System::TypeInfo\&) const override |  |
| [set_Bold](./set_bold/)(bool) | True if the font is formatted as bold. |
| [set_FitPath](./set_fitpath/)(bool) | Defines whether the text fits the path of a shape. |
| [set_FitShape](./set_fitshape/)(bool) | Defines whether the text fits bounding box of a shape. |
| [set_FontFamily](./set_fontfamily/)(const System::String\&) | Defines the family of the textpath font. |
| [set_Italic](./set_italic/)(bool) | True if the font is formatted as italic. |
| [set_Kerning](./set_kerning/)(bool) | Determines whether kerning is turned on. |
| [set_On](./set_on/)(bool) | Defines whether the text is displayed. |
| [set_ReverseRows](./set_reverserows/)(bool) | Setter for [Aspose::Words::Drawing::TextPath::get_ReverseRows](./get_reverserows/). |
| [set_RotateLetters](./set_rotateletters/)(bool) | Determines whether the letters of the text are rotated. |
| [set_SameLetterHeights](./set_sameletterheights/)(bool) | Determines whether all letters will be the same height regardless of initial case. |
| [set_Shadow](./set_shadow/)(bool) | Defines whether a shadow is applied to the text on a text path. |
| [set_Size](./set_size/)(double) | Defines the size of the font in points. |
| [set_SmallCaps](./set_smallcaps/)(bool) | True if the font is formatted as small capital letters. |
| [set_Spacing](./set_spacing/)(double) | Defines the amount of spacing for text. 1 means 100%. |
| [set_StrikeThrough](./set_strikethrough/)(bool) | True if the font is formatted as strikethrough text. |
| [set_Text](./set_text/)(const System::String\&) | Defines the text of the text path. |
| [set_TextPathAlignment](./set_textpathalignment/)(Aspose::Words::Drawing::TextPathAlignment) | Defines the alignment of text. |
| [set_Trim](./set_trim/)(bool) | Determines whether extra space is removed above and below the text. |
| [set_Underline](./set_underline/)(bool) | True if the font is underlined. |
| [set_XScale](./set_xscale/)(bool) | Setter for [Aspose::Words::Drawing::TextPath::get_XScale](./get_xscale/). |
| static [Type](./type/)() |  |
## Remarks


Use the [TextPath](../shape/get_textpath/) property to access WordArt properties of a shape. You do not create instances of the [TextPath](./) class directly.

## See Also

* Namespace [Aspose::Words::Drawing](../)
* Library [Aspose.Words for C++](../../)
