---
title: "Aspose::Cells::Drawing::Texts::TextBoxOptions::SetShapeTextVerticalAlignment method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.drawing.texts/textboxoptions/setshapetextverticalalignment/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Drawing::Texts::TextBoxOptions::SetShapeTextVerticalAlignment method. It corresponds to \"Format Shape - Text Options - Text Box - Vertical Alignment\" in Excel in C++."
---

## TextBoxOptions::SetShapeTextVerticalAlignment method


It corresponds to "Format Shape - Text Options - Text Box - Vertical Alignment" in Excel.

```cpp
void Aspose::Cells::Drawing::Texts::TextBoxOptions::SetShapeTextVerticalAlignment(ShapeTextVerticalAlignmentType value)
```


## Examples


```cpp
shape.GetTextBoxOptions().SetShapeTextVerticalAlignment(ShapeTextVerticalAlignmentType::Left);
```

## See Also

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