System.Windows.Forms.RichTextBox.ScrollBars Property

Gets or sets the type of scroll bars to display in the System.Windows.Forms.RichTextBox control.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.RichTextBoxScrollBars.Both)]
public RichTextBoxScrollBars ScrollBars { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property enables you to provide horizontal and vertical scroll bars to the user of the System.Windows.Forms.RichTextBox control to enable scrolling text within the control that is outside of the physical dimensions of the control. You can also use this property to remove scroll bars from the control to restrict scrolling the contents of the control.

Note:

Horizontal scroll bars will not be shown if the TextBoxBase.WordWrap is true, regardless of the value of the RichTextBox.ScrollBars property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0