Share via


ViewInfo2.IsDefault Property

Gets or sets a value that indicates whether the view is defined as the default view in a Microsoft Office InfoPath 2007 form.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

Remarks

The IsDefault property of the ViewInfoObject object can be used to determine whether a view is the default view, and it can be used to programmatically change the default view before the first view is loaded.

Example

In the following example, the IsDefault property is used to make the second view contained in the ViewInfosCollection collection the default view:

thisXDocument.ViewInfos[1].IsDefault = true;

See Also

Reference

ViewInfo2 Interface
ViewInfo2 Members
Microsoft.Office.Interop.InfoPath Namespace