## TextShape class

Represents a text shape.

```csharp
public sealed class TextShape : RectangleProjectedShape
```

## Constructors

| Name | Description |
| --- | --- |
| [TextShape](textshape/#constructor)() | Initializes a new instance of the `TextShape` class. |
| [TextShape](textshape/#constructor_1)(string, RectangleF, Font, StringFormat) | Initializes a new instance of the `TextShape` class. |

## Properties

| Name | Description |
| --- | --- |
| override [Bounds](../../aspose.imaging.shapes/textshape/bounds/) { get; } | Gets the object's bounds. |
| override [Center](../../aspose.imaging.shapes/textshape/center/) { get; } | Gets the shape's center. |
| [Font](../../aspose.imaging.shapes/textshape/font/) { get; set; } | Gets or sets the font used to draw the text. |
| override [HasSegments](../../aspose.imaging.shapes/textshape/hassegments/) { get; } | Gets a value indicating whether shape has segments. |
| [LeftBottom](../../aspose.imaging.shapes/rectangleprojectedshape/leftbottom/) { get; } | Gets the left bottom rectangle point. |
| [LeftTop](../../aspose.imaging.shapes/rectangleprojectedshape/lefttop/) { get; } | Gets the left top rectangle point. |
| [RectangleHeight](../../aspose.imaging.shapes/rectangleprojectedshape/rectangleheight/) { get; } | Gets the rectangle height. |
| [RectangleWidth](../../aspose.imaging.shapes/rectangleprojectedshape/rectanglewidth/) { get; } | Gets the rectangle width. |
| [RightBottom](../../aspose.imaging.shapes/rectangleprojectedshape/rightbottom/) { get; } | Gets the right bottom rectangle point. |
| [RightTop](../../aspose.imaging.shapes/rectangleprojectedshape/righttop/) { get; } | Gets the right top rectangle point. |
| override [Segments](../../aspose.imaging.shapes/textshape/segments/) { get; } | Gets the shape segments. |
| [Text](../../aspose.imaging.shapes/textshape/text/) { get; set; } | Gets or sets the drawn text. |
| [TextFormat](../../aspose.imaging.shapes/textshape/textformat/) { get; set; } | Gets or sets the text format. |

## Methods

| Name | Description |
| --- | --- |
| override [Equals](../../aspose.imaging.shapes/textshape/equals/)(object) | Check if objects are equal. |
| override [GetBounds](../../aspose.imaging.shapes/textshape/getbounds/#getbounds)(Matrix) | Gets the object's bounds. |
| override [GetBounds](../../aspose.imaging.shapes/textshape/getbounds/#getbounds_1)(Matrix, Pen) | Gets the object's bounds. |
| override [GetHashCode](../../aspose.imaging.shapes/textshape/gethashcode/)() | Get hash code of the current object. |
| override [Transform](../../aspose.imaging.shapes/textshape/transform/)(Matrix) | Applies the specified transformation to the shape. |

### See Also

* class [RectangleProjectedShape](../rectangleprojectedshape/)
* namespace [Aspose.Imaging.Shapes](../../aspose.imaging.shapes/)
* assembly [Aspose.Imaging](../../)


