RichTextBox.SelectionType 属性

定义

获取控件内的选定内容类型。

C#
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.RichTextBoxSelectionTypes SelectionType { get; }

属性值

RichTextBoxSelectionTypes

RichTextBoxSelectionTypes 值的按位组合。

属性

注解

可以使用此属性来确定控件中当前选定的数据类型,以便在对当前选定内容执行控件中的任务时正确处理所选内容。 该属性可以表示枚举中的任意值 RichTextBoxSelectionTypes 组合,表示当前所选内容中的许多对象类型。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

另请参阅