TextBox.SelectedText Propriété

Définition

Obtient ou définit le contenu de la sélection actuelle dans la zone de texte.

public:
 property Platform::String ^ SelectedText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring SelectedText();

void SelectedText(winrt::hstring value);
public string SelectedText { get; set; }
var string = textBox.selectedText;
textBox.selectedText = string;
Public Property SelectedText As String
<TextBox SelectedText="string"/>

Valeur de propriété

String

Platform::String

winrt::hstring

Texte actuellement sélectionné dans la zone de texte. Si aucun texte n’est sélectionné, la valeur est String.Empty.

S’applique à