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

適用於