RichTextBoxScrollBars Enumeration

 

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

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

public enum RichTextBoxScrollBars

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.

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

.NET Framework
Available since 1.1
Return to top
Show: