TextBox.Text 屬性

定義

取得或設定文字方塊的文字內容。

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

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

屬性值

String

Platform::String

winrt::hstring

包含文字方塊之文字內容的字串。 預設為空字串 ("")。

適用於