---
title: "Aspose::Cells::Drawing::Texts::ShapeTextAlignment::SetTextShapeType method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.drawing.texts/shapetextalignment/settextshapetype/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Drawing::Texts::ShapeTextAlignment::SetTextShapeType method. Gets and set the transform type of text in C++."
---

## ShapeTextAlignment::SetTextShapeType method


Gets and set the transform type of text.

```cpp
void Aspose::Cells::Drawing::Texts::ShapeTextAlignment::SetTextShapeType(AutoShapeType value)
```


## Examples


```cpp
//Usually do not modify this value unless you know exactly what the modification will result in
if (shapeTextAlignment.GetTextShapeType() == AutoShapeType::TextBox)
{
    shapeTextAlignment.SetTextShapeType(AutoShapeType::TextBox);
}
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Enum [AutoShapeType](../../../aspose.cells.drawing/autoshapetype/)
* Class [ShapeTextAlignment](../)
* Namespace [Aspose::Cells::Drawing::Texts](../../)
* Library [Aspose.Cells for C++](../../../)
