RichTextBox.SelectionType 屬性

定義

取得控制項內選取項目的類型。

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

屬性值

RichTextBoxSelectionTypes

RichTextBoxSelectionTypes 值的位元組合。

屬性

備註

您可以使用這個屬性來判斷控制項中目前選取的資料類型,以便在目前選取範圍上執行控制項內的工作時,正確處理選取範圍。 屬性可以代表列舉 RichTextBoxSelectionTypes 值的任何組合,這些值代表目前選取範圍中的許多物件類型。

適用於

另請參閱