Edit

Share via


_XDocument2 Interface

Definition

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, seeXDocument.

public interface class _XDocument2 : Microsoft::Office::Interop::InfoPath::SemiTrust::_XDocument
[System.Runtime.InteropServices.Guid("096cd6a8-0786-11d1-95fa-0080c78ee3bb")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)]
public interface _XDocument2 : Microsoft.Office.Interop.InfoPath.SemiTrust._XDocument
type _XDocument2 = interface
    interface _XDocument
Public Interface _XDocument2
Implements _XDocument
Derived
Attributes
Implements

Properties

DataAdapters

Gets a reference to the DataAdaptersCollection collection that is associated with a form.

DataObjects

Gets a reference to the DataObjectsCollection collection that is associated with a form.

DOM

Gets a reference to a form's underlying XML document in the form of an XML Document Object Model (DOM).

Errors

Gets a reference to the ErrorsCollection that is associated with a form.

Extension

Gets a reference to the global scripting object, which exposes the functions and global variables contained in a form's primary form code file.

IsDirty

Gets a value that indicates whether the data in a form has been modified since it was last saved.

IsDOMReadOnly

Gets a value that indicates whether the data in the underlying XML document of a form has been placed in a read-only state.

IsNew

Gets a value that indicates whether a newly created form has been saved.

IsReadOnly

Gets a value that indicates whether a form is in read-only mode.

IsRecovered

Gets a value that indicates whether a form was last saved by an AutoRecover save operation.

IsSigned

Gets a value that indicates whether a form has been digitally signed using digital signatures.

Language

Gets or sets a form's default language code.

QueryAdapter

Gets a reference to the data adapter object that is associated with a form.

Role

Gets or sets the user's current role.

SignedDataBlocks

Gets a reference to the SignedDataBlocksCollection collection that is associated with an XDocument object.

Solution

Gets a reference to the SolutionObject object that is associated with a form.

UI

Returns a reference to UIObject object.

URI

Gets the Uniform Resource Identifier (URI) of a form.

Util

Gets a reference to UtilObject object.

View

Gets a reference to the ViewObject associated with a form.

ViewInfos

Gets a reference to the ViewInfosCollection collection associated with a form.

Methods

CreateDOM()

Creates a new instance of the XML Document Object Model (DOM) in memory.

GetDataVariable(Int32)

Gets the value of the specified variable, which is a predefined variable stored as a processing instruction attribute in the form's underlying XML document.

GetDOM(String)

Gets a reference to the XML Document Object Model (DOM) of the specified DataSourceObject object associated with the XDocument object.

GetNamedNodeProperty(Object, String, String)

Gets the value of a named property for the specified XML node, which must be a nonattribute node in the main data source.

ImportDOM(IXMLDOMDocument)

Imports the specified XML data into the current form.

ImportFile(String)

Imports the specified form into the current form.

PrintOut()

Prints the form content as it is rendered in the window corresponding to the form's active view.

Query()

Retrieves data from a form's associated data adapter object and stores the data in the form's underlying XML Document Object Model (DOM).

Save()

Saves the form to the Uniform Resource Locator (URL) that it is currently associated with.

SaveAs(String)

Saves the form to the specified Uniform Resource Locator (URL).

SetDataVariable(Int32, String)

Sets the value of a predefined variable stored as a processing instruction attribute in the form's underlying XML document.

SetDirty(Boolean)

Sets the IsDirty property for the XDocument object, which indicates whether the data in a form has been modified since it was last saved.

SetNamedNodeProperty(IXMLDOMNode, String, String)

Sets the value of a named property for the supplied XML node, which must be a nonattribute node in the main data source.

Submit()

Executes the predefined submit operation in a form.

Applies to