The ViewInfo object contains descriptive information about the individual views that are stored in an InfoPath solution. The ViewInfo object contains the properties shown Table A.17.
Name | Security Level | Description |
---|---|---|
IsDefault | 2 | A Boolean that indicates whether the current view is the defined default view |
Name | 2 | A read-only string that contains the name of the current view |
The following example changes the third view (views are stored as a zero-based collection) into the default view:
XDocument.ViewInfos(1).IsDefault = true;