RichTextBox.SelectionType Egenskap

Definition

Hämtar urvalstypen i kontrollen.

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

Egenskapsvärde

En bitvis kombination av RichTextBoxSelectionTypes värdena.

Attribut

Kommentarer

Du kan använda den här egenskapen för att fastställa vilken typ av data som för närvarande är markerad i kontrollen för att hantera markeringen korrekt när du utför uppgifter i kontrollen för den aktuella markeringen. Egenskapen kan representera valfri kombination av värden från RichTextBoxSelectionTypes uppräkningen som representerar de många typerna av objekt i den aktuella markeringen.

Gäller för

Se även