ViewInfo Object
InfoPath Developer Reference |
Contains descriptive information about a view within a Microsoft Office InfoPath 2007 form.
Version Information
Version Added: InfoPath 2003
Remarks
The ViewInfo object provides properties that can be used to get the name of a view and determine whether a view is the default view of the form. The ViewInfo object is accessible through the ViewInfos property of the XDocument object.
Note |
---|
To work with the view programmatically, use the View object. |
Example
In the following example, the IsDefault property of the ViewInfo object is used to determine whether a view is the default view of the form. Then the code uses the Name property of the ViewInfo object to display the name of the default view in a message box.
JScript |
---|
|
See Also