Export (0) Print
Expand All
Expand Minimize

RichTextBoxScrollBars Enumeration

Specifies the type of scroll bars to display in a RichTextBox control.

[Visual Basic]
<Serializable>
Public Enum RichTextBoxScrollBars
[C#]
[Serializable]
public enum RichTextBoxScrollBars
[C++]
[Serializable]
__value public enum RichTextBoxScrollBars
[JScript]
public
   Serializable
enum RichTextBoxScrollBars

Remarks

Use the members of this enumeration to set the value of the ScrollBars property of the RichTextBox control.

Members

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.

Requirements

Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

System.Windows.Forms Namespace | RichTextBox | ScrollBars

Show:
© 2014 Microsoft