System.Web.UI.WebControls.ScrollBars Enumeration

Specifies the visibility and position of scroll bars in a System.Web.UI.WebControls.Panel control.

Syntax

[System.Flags]
public enum ScrollBars

Remarks

The System.Web.UI.WebControls.ScrollBars enumeration represents the visibility and position of the scroll bars in a System.Web.UI.WebControls.Panel control. The Panel.ScrollBars property uses these enumeration values to specify the type of scroll bars to display in a System.Web.UI.WebControls.Panel control. The default value for the Panel.ScrollBars property is None, indicating that no scroll bars are shown.

If you specify Auto for the Panel.ScrollBars property, scroll bars are automatically shown when the size of the content in a System.Web.UI.WebControls.Panel control exceeds the size of the System.Web.UI.WebControls.Panel control. For example, if a System.Web.UI.WebControls.Panel control contains a table, and the panel is not wide enough to display all the rows in the table, a vertical scroll bar is shown. If the size of the table exceeds the height and width of the panel, both vertical and horizontal scroll bars are shown.

Members

Member NameDescription
Auto

Displays, horizontal, vertical, or both scroll bars as necessary. Otherwise, no scroll bars are shown.

Both

Displays both a horizontal and a vertical scroll bar.

Horizontal

Displays only a horizontal scroll bar.

None

Displays no scroll bars.

Vertical

Displays only a vertical scroll bar.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0