RichTextBoxScrollBars Enumeration
.NET Framework (current version)
Specifies the type of scroll bars to display in a RichTextBox control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Member name | Description | |
|---|---|---|
| Both | Display both a horizontal and a vertical scroll bar when needed. | |
| ForcedBoth | Always display both a horizontal and a vertical scroll bar. | |
| ForcedHorizontal | Always display a horizontal scroll bar. | |
| ForcedVertical | Always display a vertical scroll bar. | |
| Horizontal | Display a horizontal scroll bar only when text is longer than the width of the control. | |
| None | No scroll bars are displayed. | |
| Vertical | Display a vertical scroll bar only when text is longer than the height of the control. |
Use the members of this enumeration to set the value of the ScrollBars property of the RichTextBox control.
.NET Framework
Available since 1.1
Available since 1.1
Show: