ViewInfo2.Caption property

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
ReadOnly Property Caption As String
    Get
'Usage
Dim instance As ViewInfo2
Dim value As String

value = instance.Caption
string Caption { get; }

Property value

Type: System.String
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 Microsoft.Office.Interop.InfoPath.SemiTrust 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.

See also

Reference

ViewInfo2 interface

ViewInfo2 members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace