System.Web.UI.WebControls.Panel.ScrollBars Property

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

Syntax

public virtual ScrollBars ScrollBars { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Panel.ScrollBars property to specify the visibility and position of scroll bars in a System.Web.UI.WebControls.Panel control. This property is set using one of the System.Web.UI.WebControls.ScrollBars enumeration values. The following table lists the possible values.

None

No scroll bars are shown.

Horizontal

Only a horizontal scroll bar is shown.

Vertical

Only a vertical scroll bar is shown.

Both

Both horizontal and vertical scroll bars are shown.

Auto

If necessary, horizontal, vertical, or both scroll bars are shown. Otherwise, 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 itself. 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.

Note:

This property is supported only on browsers that support HTML 4.0 or later.

Requirements

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