Share via


View2 Members

This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, seeViewObject.

The following tables list the members exposed by the View2 type.

Public Properties

  Name Description
Public property Name Gets the name of the view.
Public property Window Gets a reference to the window associated with the view.

Top

Public Methods

  Name Description
Public method DisableAutoUpdate Disables automatic synchronization between a form's underlying XML document and the associated view.
Public method EnableAutoUpdate Enables automatic synchronization between a form's underlying XML document and the associated view.
Public method ExecuteAction Executes a Microsoft Office InfoPath 2003 editing command against a form's underlying XML document, based on the data selected in the view.
Public method Export Exports the view to a file of the specified format.
Public method ExportAsFixedFormat Exports the view to a file of the specified format, and supports initializing a COM add-in for exporting to a fixed-format file.
Public method ForceUpdate Forces synchronization between a form's underlying XML document and the associated view.
Public method GetContextNodes Gets a reference to an XMLNodesCollection collection that is populated with XML Document Object Model (DOM) nodes based on the current context.
Public method GetSelectedNodes Gets a reference to an XMLNodesCollection collection that is populated with XML Document Object Model (DOM) nodes based on the current selection of items in a view.
Public method SelectNodes Selects a range of nodes in a view based on the specified starting XML Document Object Model (DOM) node, the ending XML DOM node, and the view context.
Public method SelectText Selects the text contained in an editable field that is bound to the specified XML Document Object Model (DOM) node.
Public method SwitchView Changes the active view of a Microsoft Office InfoPath 2007 form to a specified view.

Top

See Also

Reference

View2 Interface
Microsoft.Office.Interop.InfoPath Namespace