System.Windows.Forms.RichTextBoxScrollBars Enumeration

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

Syntax

public enum RichTextBoxScrollBars

Remarks

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

Members

Member NameDescription
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
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0