Edit

Share via


ViewInfoObject Interface

Definition

Contains descriptive information about a view within an InfoPath form.

public interface class ViewInfoObject : Microsoft::Office::Interop::InfoPath::SemiTrust::ViewInfo
[System.Runtime.InteropServices.Guid("096cd602-0786-11d1-95fa-0080c78ee3bb")]
public interface ViewInfoObject : Microsoft.Office.Interop.InfoPath.SemiTrust.ViewInfo
type ViewInfoObject = interface
    interface ViewInfo
Public Interface ViewInfoObject
Implements ViewInfo
Attributes
Implements

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeViewInfo.

Using the members of the ViewInfo interface provides compatibility with InfoPath 2003. To use new members that were added to the ViewInfo2 object model in Microsoft InfoPath 2010, you must cast the object returned by the ViewInfos property of the XDocument object to the ViewInfo2 type. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

The ViewInfoObject object provides properties that can be used to get the name of a view, determine whether a view is the default view of the form, and determine whether its name is hidden on the View menu. The ViewInfoObject object is accessible through the ViewInfos property of the XDocument object.

Note: To work with the view programmatically, use the ViewObject object.

Properties

IsDefault

Gets or sets a value that indicates whether the view is defined as the default view in a Microsoft InfoPath form.

(Inherited from ViewInfo)
Name

Gets the name of the view that is associated with the ViewInfoObject object.

(Inherited from ViewInfo)

Applies to