LiteralText.Text Propriedade

Definição

Define ou retorna o texto do controle.Sets or returns the text for the control. O padrão é um string vazio.The default is an empty string. 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(false)]
[System.ComponentModel.Browsable(false)]
public string Text { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.Text : string with get, set
Public Property Text As String

Valor da propriedade

String

O texto do controle.The text for the control.

Atributos

Comentários

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 propriedade recentemente definida terá precedência.However, if the Text property is programmatically set, the inner text is automatically removed and the newly set property takes precedence.

Aplica-se a