TextView.Text Propriedade
Definição
Define ou retorna o texto do controle.Sets or returns the text for the control. Esta API está obsoleta.This API is obsolete. Para saber mais sobre como desenvolver aplicativos móveis ASP.NET, veja Mobile Apps & Sites with ASP.NET (Aplicativos móveis e sites com ASP.NET).For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
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
Valor da propriedade
O texto do controle.The text for the control.
- Atributos
Comentários
Para obter informações sobre as marcas (como <b> ) que TextView dão suporte em sua Text propriedade, consulte a TextView discussão sobre classe.For information about the tags (such as <b>) that TextView supports in its Text property, see the TextView class discussion.
A Text propriedade pode ser especificada usando o Text atributo ou como texto interno.The Text property can be specified by using the Text attribute, or as inner text. Se a Text propriedade for especificada de ambas as maneiras, o texto interno sempre terá precedência.If the Text property is specified in both ways, the inner text always takes precedence. No entanto, se a Text propriedade for definida de forma programática, o texto interno será removido automaticamente e a nova configuração terá precedência.However, if the Text property is programmatically set, the inner text is automatically removed and the new setting takes precedence.