ViewInfo2.IsDefault Property

Definition

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

public:
 property bool IsDefault { bool get(); void set(bool value); };
public bool IsDefault { get; set; }
member this.IsDefault : bool with get, set
Public Property IsDefault As Boolean

Property Value

Implements

Examples

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].<span class="label">IsDefault</span> = true;

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.

Applies to