ViewInfo Object


ViewInfo Object

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.

Table A.17: Properties Of The Viewinfo Object.

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; 



Programming Microsoft Infopath. A Developers Guide
Programming Microsoft Infopath: A Developers Guide
ISBN: 1584504536
EAN: 2147483647
Year: 2006
Pages: 111
Authors: Thom Robbins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net