Share via


IsDefault Property

Sets or retrieves a Boolean value that indicates whether the view is defined as the default view in a Microsoft Office InfoPath 2003 form.

expression.IsDefault

expression Required. An expression that returns a reference to the ViewInfo object.

Security Level

2: 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.

Remarks

The IsDefault property of the ViewInfo 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 ViewInfos collection the default view:

XDocument.ViewInfos(1).IsDefault = true;

Applies to | ViewInfo Object