ViewInfo.IsDefault Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.