## SpinButtonActiveXControl::SetOrientation method


Gets and sets whether the SpinButton or [ScrollBar](../../../aspose.cells.drawing/scrollbar/) is oriented vertically or horizontally.

```cpp
void Aspose::Cells::Drawing::ActiveXControls::SpinButtonActiveXControl::SetOrientation(ControlScrollOrientation value)
```


## Examples


```cpp
if (activeXControl.GetOrientation() == ControlScrollOrientation::Auto)
{
    activeXControl.SetOrientation(ControlScrollOrientation::Horizontal);
}
```

## See Also

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