Share via


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 2010.

Because the Caption property is newin Microsoft InfoPath 2010, 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