RichTextBoxSelectionTypes 枚举
指定 RichTextBox 控件中选定内容的类型。
此枚举有一个 FlagsAttribute 属性,允许其成员值按位组合。
**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)
语法
声明
<FlagsAttribute> _
Public Enumeration RichTextBoxSelectionTypes
用法
Dim instance As RichTextBoxSelectionTypes
[FlagsAttribute]
public enum RichTextBoxSelectionTypes
[FlagsAttribute]
public enum class RichTextBoxSelectionTypes
/** @attribute FlagsAttribute() */
public enum RichTextBoxSelectionTypes
FlagsAttribute
public enum RichTextBoxSelectionTypes
成员
成员名称 | 说明 | |
---|---|---|
Empty | 在当前选定内容中未选定文本。 | |
MultiChar | 选定了一个以上的字符。 | |
MultiObject | 选定了一个以上的对象链接与嵌入 (OLE) 对象。 | |
Object | 至少选定了一个对象链接与嵌入 (OLE) 对象。 | |
Text | 当前选定内容仅包含文本。 |
备注
使用此枚举的成员来确定 RichTextBox 类的 SelectionType 属性值。RichTextBox.SelectionType 属性可以返回此枚举值的任何组合。
平台
Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
版本信息
.NET Framework
受以下版本支持:2.0、1.1、1.0
请参见
参考
System.Windows.Forms 命名空间
RichTextBox 类
RichTextBox.SelectionType 属性