|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
ViewInfo Class (Microsoft.Office.InfoPath)
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
The ViewInfo object provides properties that can be used to get the name of a view and determine whether its name is hidden on the View menu when editing a form. The ViewInfo object is accessible through the ViewInfos property of the XmlForm object, and from the ViewInfo property of a View object.
To work with the view programmatically, use the View object.