TextBox.SelectedText プロパティ

定義

テキスト ボックス内の現在の選択項目のコンテンツを取得または設定します。

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"/>

プロパティ値

String

Platform::String

winrt::hstring

テキスト ボックスで現在択されているテキスト。 テキストが選択されていない場合、値は String.Empty です

適用対象