# Caption Property

Gets or sets the caption of a form, wizard page, or other object.

Namespace:  Microsoft.Web.Management.Client.Win32
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

## Syntax

```public string Caption { get; set; }
```

#### Property Value

Type: System..::..String
The caption text. The default is an empty string.

## Remarks

You should use this property to update the caption of the WizardPage object. The Caption property contains a string that is shown in the caption in the wizard form. You can use this string wherever you need a caption, such as in the title bar of the form that contains the wizard page or in the WizardPage control.

## Examples

The following example demonstrates the Caption property. This example sets the caption to specific string value. This code example is part of a larger example provided for the WizardPage class.

```protected override void Activate()
{
_description = this.Name;
_caption = "Original Caption";
this.button4.Text = "Change R to L Layout : currently " + RightToLeft.ToString();
}

...

// Customize the Caption Property.
public new string Caption
{
get
{
return _caption;
}
set
{
_caption = value;
}
}

...

// The Caption button is clicked.
private void button2_Click(object sender, EventArgs e)
{
Caption = "Caption Modified";
}

```