Easy Tutorial
❮ Control Literal Mvc Htmlhelpers ❯

ASP.NET Panel ScrollBars Property



Definition and Usage

The ScrollBars property is used to set or return the position and visibility of scroll bars in the Panel control.

Syntax

Property Description
value Specifies whether scroll bars are displayed. Possible values: None - Default. No scroll bars are displayed.<br> Horizontal - Only horizontal scroll bars are displayed.<br> Vertical - Only vertical scroll bars are displayed.<br> Both - Both horizontal and vertical scroll bars are displayed.<br> Auto - Horizontal, vertical, or both scroll bars are displayed if needed.

Example

The following example sets the ScrollBars property of the Panel control to "Auto":


❮ Control Literal Mvc Htmlhelpers ❯