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
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.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.

See also

Reference

ViewInfo2 interface

ViewInfo2 members

Microsoft.Office.Interop.InfoPath namespace