View2 Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public interface class View2 : Microsoft::Office::Interop::InfoPath::SemiTrust::View
[System.Runtime.InteropServices.Guid("096cd70c-0786-11d1-95fa-0080c78ee3bb")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)]
public interface View2 : Microsoft.Office.Interop.InfoPath.SemiTrust.View
type View2 = interface
interface View
Public Interface View2
Implements View
- Derived
- Attributes
- Implements
Properties
Name |
Gets the name of the view. |
Window |
Gets a reference to the window associated with the view. |
Methods
DisableAutoUpdate() |
Disables automatic synchronization between a form's underlying XML document and the associated view. |
EnableAutoUpdate() |
Enables automatic synchronization between a form's underlying XML document and the associated view. |
ExecuteAction(String, Object) |
Executes a Microsoft InfoPath editing command against a form's underlying XML document, based on the data selected in the view. |
Export(String, String) |
Exports the view to a file of the specified format. |
ExportAsFixedFormat(String, String, Object) |
Exports the view to a file of the specified format, and supports initializing a COM add-in for exporting to a fixed-format file. |
ForceUpdate() |
Forces synchronization between a form's underlying XML document and the associated view. |
GetContextNodes(Object, Object) |
Gets a reference to an XMLNodesCollection collection that is populated with XML Document Object Model (DOM) nodes based on the current context. |
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. |
SelectNodes(IXMLDOMNode, Object, Object) |
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. |
SelectText(IXMLDOMNode, Object) |
Selects the text contained in an editable field that is bound to the specified XML Document Object Model (DOM) node. |
SwitchView(String) |
Changes the active view of a Microsoft InfoPath form to a specified view. |