---
title: "Aspose::Cells::Drawing::Texts::TextBoxOptions::SetResizeToFitText method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.drawing.texts/textboxoptions/setresizetofittext/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Drawing::Texts::TextBoxOptions::SetResizeToFitText method. Indicates whether to resize the shape to fit the text in C++."
---

## TextBoxOptions::SetResizeToFitText method


Indicates whether to resize the shape to fit the text.

```cpp
void Aspose::Cells::Drawing::Texts::TextBoxOptions::SetResizeToFitText(bool value)
```


## Examples


```cpp
shape.GetTextBoxOptions().SetResizeToFitText(false);
```

## See Also

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