---
title: "Aspose::Cells::Drawing::Texts::TextBoxOptions::SetShapeTextDirection method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.drawing.texts/textboxoptions/setshapetextdirection/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Drawing::Texts::TextBoxOptions::SetShapeTextDirection method. Gets or sets the text display direction within a given text body. It corresponds to \"Format Shape - Text Options - Text Box - Text direction\" in Excel in C++."
---

## TextBoxOptions::SetShapeTextDirection method


Gets or sets the text display direction within a given text body. It corresponds to "Format Shape - Text Options - Text Box - Text direction" in Excel.

```cpp
void Aspose::Cells::Drawing::Texts::TextBoxOptions::SetShapeTextDirection(TextVerticalType value)
```


## Examples


```cpp
shape.GetTextBoxOptions().SetShapeTextDirection(TextVerticalType::Vertical);
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Enum [TextVerticalType](../../textverticaltype/)
* Class [TextBoxOptions](../)
* Namespace [Aspose::Cells::Drawing::Texts](../../)
* Library [Aspose.Cells for C++](../../../)
