RichTextBox.SelectionType RichTextBox.SelectionType RichTextBox.SelectionType RichTextBox.SelectionType Property

定义

获取控件内的选定内容类型。Gets the selection type within the control.

public:
 property System::Windows::Forms::RichTextBoxSelectionTypes SelectionType { System::Windows::Forms::RichTextBoxSelectionTypes get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.RichTextBoxSelectionTypes SelectionType { get; }
member this.SelectionType : System.Windows.Forms.RichTextBoxSelectionTypes
Public ReadOnly Property SelectionType As RichTextBoxSelectionTypes

属性值

注解

您可以使用此属性来确定控件中当前选定的数据类型,以便在当前选定内容中执行控件中的任务时正确处理选定内容。You can use this property to determine the type of data that is currently selected in the control in order to handle the selection properly when performing tasks within the control on the current selection. 属性可表示RichTextBoxSelectionTypes枚举中的任何值组合,这些值表示当前选定内容中的多个对象类型。The property can represent any combination of values from the RichTextBoxSelectionTypes enumeration representing the many types of objects in the current selection.

适用于

另请参阅