RichTextBoxSelectionTypes 枚举

定义

指定 RichTextBox 控件中选定内容的类型。Specifies the type of selection in a RichTextBox control.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class RichTextBoxSelectionTypes
[System.Flags]
public enum RichTextBoxSelectionTypes
type RichTextBoxSelectionTypes = 
Public Enum RichTextBoxSelectionTypes
继承
RichTextBoxSelectionTypes
属性

字段

Empty 0

在当前选定内容中未选定文本。No text is selected in the current selection.

MultiChar 4

选定了一个以上的字符。More than one character is selected.

MultiObject 8

选定了一个以上的对象链接与嵌入 (OLE) 对象。More than one Object Linking and Embedding (OLE) object is selected.

Object 2

至少选定了一个对象链接与嵌入 (OLE) 对象。At least one Object Linking and Embedding (OLE) object is selected.

Text 1

当前选定内容仅包含文本。The current selection contains only text.

注解

使用此枚举的成员确定SelectionType RichTextBox类的属性的值。Use the members of this enumeration to determine the value of the SelectionType property of the RichTextBox class. RichTextBox.SelectionType属性可以返回此枚举中的任何值组合。The RichTextBox.SelectionType property can return any combination of values from this enumeration.

适用于

另请参阅