TextView.Text 屬性

定義

設定或傳回控制項的文字。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public:
 property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)]
public string Text { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)>]
member this.Text : string with get, set
Public Property Text As String

屬性值

控制項的文字。

屬性

備註

如需標籤 (的相關信息,例如<在其 屬性中Text支援的 b>) TextView,請參閱TextView類別討論。

Text您可以使用 屬性或內部文字來指定 Text 屬性。 Text如果屬性以兩種方式指定,內部文字一律優先。 不過,如果 Text 屬性是以程式設計方式設定,則會自動移除內部文字,而且新的設定優先。

適用於

另請參閱