## TextBoxActiveXControl::SetEnterKeyBehavior method


Specifies the behavior of the ENTER key. True specifies that pressing ENTER will create a new line. False specifies that pressing ENTER will move the focus to the next object in the tab order.

```cpp
void Aspose::Cells::Drawing::ActiveXControls::TextBoxActiveXControl::SetEnterKeyBehavior(bool value)
```


## Examples


```cpp
if (!activeXControl.GetEnterKeyBehavior())
{
    activeXControl.SetEnterKeyBehavior(true);
}
```

## See Also

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