RichTextBoxScrollBars 枚举

定义

指定要在 RichTextBox 控件中显示的滚动条的类型。Specifies the type of scroll bars to display in a RichTextBox control.

public enum class RichTextBoxScrollBars
public enum RichTextBoxScrollBars
type RichTextBoxScrollBars = 
Public Enum RichTextBoxScrollBars
继承
RichTextBoxScrollBars

字段

Both 3

在需要时同时显示水平滚动条和垂直滚动条。Display both a horizontal and a vertical scroll bar when needed.

ForcedBoth 19

始终同时显示水平滚动条和垂直滚动条。Always display both a horizontal and a vertical scroll bar.

ForcedHorizontal 17

始终显示水平滚动条。Always display a horizontal scroll bar.

ForcedVertical 18

始终显示垂直滚动条。Always display a vertical scroll bar.

Horizontal 1

仅在文本比控件的宽度长时显示水平滚动条。Display a horizontal scroll bar only when text is longer than the width of the control.

None 0

不显示滚动条。No scroll bars are displayed.

Vertical 2

仅在文本比控件的高度长时显示垂直滚动条。Display a vertical scroll bar only when text is longer than the height of the control.

注解

使用此枚举的成员设置ScrollBars RichTextBox控件的属性的值。Use the members of this enumeration to set the value of the ScrollBars property of the RichTextBox control.

适用于

另请参阅