Share via


LiteralText.Text Propiedad

Definición

Establece o devuelve el texto del control. El valor predeterminado es un string vacío Esta API está obsoleta. Para obtener información sobre cómo desarrollar aplicaciones móviles ASP.NET, consulte 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 de propiedad

El texto del control.

Atributos

Comentarios

La Text propiedad se puede especificar mediante el Text atributo o como texto interno. Si la Text propiedad se especifica de ambas maneras, el texto interno siempre tiene prioridad. Sin embargo, si la Text propiedad se establece mediante programación, el texto interno se quita automáticamente y la propiedad recién establecida tiene prioridad.

Se aplica a

Consulte también