## TextBoxActiveXControl::GetMaxLength method


Gets and sets the maximum number of characters.

```cpp
int32_t Aspose::Cells::Drawing::ActiveXControls::TextBoxActiveXControl::GetMaxLength()
```


## Examples


```cpp
if (activeXControl.GetMaxLength() == 0)
{
    activeXControl.SetMaxLength(30);
}
```

## See Also

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