[]
Gets or sets whether the IScrollBar is displayed horizontally or vertically.
The returned value indicates the current orientation of the scroll bar.
The default value depends on the initial width and height that is used to create this control.
If width > height, the default value is FormControlOrientation.Horizontal.
Otherwise, the default value is FormControlOrientation.Vertical.
FormControlOrientation Orientation { get; set; }
Property Orientation As FormControlOrientation
IScrollBar scrollBar = worksheet.Controls.AddScrollBar(50, 100, 120, 40);
scrollBar.Orientation = FormControlOrientation.Horizontal;
FormControlOrientation orientation = scrollBar.Orientation;