[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IScrollBar.Orientation

Orientation Property

Orientation

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.

Declaration
FormControlOrientation Orientation { get; set; }
Property Orientation As FormControlOrientation
Examples
IScrollBar scrollBar = worksheet.Controls.AddScrollBar(50, 100, 120, 40);
scrollBar.Orientation = FormControlOrientation.Horizontal;
FormControlOrientation orientation = scrollBar.Orientation;