RichTextBoxScrollBars RichTextBoxScrollBars RichTextBoxScrollBars RichTextBoxScrollBars Enum

定义

指定要在 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
继承
RichTextBoxScrollBarsRichTextBoxScrollBarsRichTextBoxScrollBarsRichTextBoxScrollBars

字段

Both Both Both Both 3

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

ForcedBoth ForcedBoth ForcedBoth ForcedBoth 19

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

ForcedHorizontal ForcedHorizontal ForcedHorizontal ForcedHorizontal 17

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

ForcedVertical ForcedVertical ForcedVertical ForcedVertical 18

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

Horizontal Horizontal Horizontal Horizontal 1

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

None None None None 0

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

Vertical Vertical Vertical 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.

适用于

另请参阅