TextBox.Text 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定文字框的文字內容。
public:
property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
[System.Windows.Localizability(System.Windows.LocalizationCategory.Text)]
public string Text { get; set; }
[<System.Windows.Localizability(System.Windows.LocalizationCategory.Text)>]
member this.Text : string with get, set
Public Property Text As String
屬性值
包含文字框內容的字串。 預設為空字串(“”)。
- 屬性
備註
取得此屬性會回傳文字框內容的字串副本。 設定此屬性後,文字框內容會被指定的字串取代。
此屬性不支援動畫。
在資料綁定情境中使用時,此特性使用預設的更新行為。UpdateSourceTrigger.LostFocus
XAML 屬性元素使用方式
<object>
String
</object>
相依財產資訊
| 項目 | 價值 |
|---|---|
| 識別碼欄位 | TextProperty |
元資料屬性設為 true |
BindsTwoWayByDefault、Journal |