Share via


Window2.Caption Propiedad

Definición

Obtiene o establece el texto del título de la ventana representada por el WindowObject objeto .

public:
 property System::String ^ Caption { System::String ^ get(); void set(System::String ^ value); };
public string Caption { get; set; }
member this.Caption : string with get, set
Public Property Caption As String

Valor de propiedad

Ejemplos

En el ejemplo siguiente, la propiedad Caption se utiliza para establecer el texto del título de la ventana activa.

string caption = "mycaption";
thisApplication.ActiveWindow.<span class="label">Caption</span> = caption;

Comentarios

El texto del título devuelto o establecido por esta propiedad corresponde al texto anterior a "- Microsoft InfoPath" en la barra de título de la ventana.

Se aplica a