RichTextBoxSelectionTypes RichTextBoxSelectionTypes RichTextBoxSelectionTypes RichTextBoxSelectionTypes Enum

定义

指定 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
继承
RichTextBoxSelectionTypesRichTextBoxSelectionTypesRichTextBoxSelectionTypesRichTextBoxSelectionTypes
属性

字段

Empty Empty Empty Empty 0

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

MultiChar MultiChar MultiChar MultiChar 4

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

MultiObject MultiObject MultiObject MultiObject 8

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

Object Object Object Object 2

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

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

适用于

另请参阅