ViewInfo2.Caption Property

Definition

Gets the value of the caption attribute of the xsf:view element associated with the view in the form definition file (.xsf).

public:
 property System::String ^ Caption { System::String ^ get(); };
public string Caption { get; }
member this.Caption : string
Public ReadOnly Property Caption As String

Property Value

The value of the caption attribute of the xsf:view element associated with the view in the form definition file (.xsf)

Remarks

By default, the value of the caption attribute is the same as the name given to the view when it was created in Microsoft InfoPath.

Because the Caption property is newin Microsoft InfoPath, you must declare and cast to the ViewInfo2 type to access it. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to