Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XDocument Object Members

Office 2007

Represents the underlying XML document of a InfoPath form.

Methods

 NameDescription
Bb230083.methods(en-us,office.12).gif CloseDocument Closes the form.
Bb230083.methods(en-us,office.12).gif CreateDOM Creates a new instance of the XML Document Object Model (DOM) in memory.
Bb230083.methods(en-us,office.12).gif GetDataVariable Returns a string containing the value of the specified variable, which is a predefined variable stored as a processing instruction attribute in the form's underlying XML document.
Bb230083.methods(en-us,office.12).gif GetDOM Returns a reference to the XML Document Object Model (DOM) of the specified DataObject object associated with the XDocument object.
Bb230083.methods(en-us,office.12).gif GetNamedNodeProperty Returns the value of a named property for the specified XML node, which must be a nonattribute node in the main data source.
Bb230083.methods(en-us,office.12).gif GetWorkflowTasks Gets a reference to a WorkflowTasks collection for the current form.
Bb230083.methods(en-us,office.12).gif GetWorkflowTemplates Gets a reference to a WorkflowTemplates collection for the current form.
Bb230083.methods(en-us,office.12).gif ImportDOM Imports the specified XML data into the current form.
Bb230083.methods(en-us,office.12).gif ImportFile Imports the specified form into the current form.
Bb230083.methods(en-us,office.12).gif NotifyHost Provides a custom value to the hosting application or ASPX page.
Bb230083.methods(en-us,office.12).gif PrintOut Prints the form content as it is rendered in the window corresponding to the form's active view.
Bb230083.methods(en-us,office.12).gif 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).
Bb230083.methods(en-us,office.12).gif Save Saves the form to the Uniform Resource Locator (URL) that it is currently associated with.
Bb230083.methods(en-us,office.12).gif SaveAs Saves the form to the specified Uniform Resource Locator (URL).
Bb230083.methods(en-us,office.12).gif SetDataVariable Sets the value of a predefined variable stored as a processing instruction attribute in the form's underlying XML document.
Bb230083.methods(en-us,office.12).gif SetDirty Sets theIsDirty property on the XDocument object to a Boolean value that indicates whether the data in an InfoPath form has been modified since it was last saved.
Bb230083.methods(en-us,office.12).gif SetNamedNodeProperty Sets the value of a named property for the supplied XML node, which must be a nonattribute node in the main data source.
Bb230083.methods(en-us,office.12).gif Submit Executes the predefined submit operation in an InfoPath form.

Properties

 NameDescription
Bb230083.properties(en-us,office.12).gif DataAdapters A read-only property that returns a reference to the DataAdapters collection that is associated with an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif DataObjects A read-only property that returns a reference to the DataObjects collection that is associated with an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif DOM A read-only property that returns a reference to a form's underlying XML document in the form of an XML Document Object Model (DOM). Read-only
Bb230083.properties(en-us,office.12).gif Errors A read-only property that returns a reference to the Errors collection that is associated with an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif Extension A read-only property that returns a reference to the global scripting object, which exposes the functions and global variables contained in an InfoPath form's primary scripting file. Read-only
Bb230083.properties(en-us,office.12).gif Host Gets a reference to the host application that code running in a hosted instance of InfoPath can use to access the object model of the host application. Read-only
Bb230083.properties(en-us,office.12).gif HostName Gets the name of the application hosting InfoPath as a control. Read-only
Bb230083.properties(en-us,office.12).gif InputParameters Gets an InputParameters collection containing any input parameters specified using the /InputParameters command-line option, or specified using query parameters in a URL. Read-only
Bb230083.properties(en-us,office.12).gif IsDirty A read-only property that returns a Boolean value that indicates whether the data in an InfoPath form has been modified since it was last saved. Read-only
Bb230083.properties(en-us,office.12).gif IsDOMReadOnly A read-only property that returns a Boolean value that indicates whether the data in the underlying XML document of an InfoPath form has been placed in a read-only state. Read-only
Bb230083.properties(en-us,office.12).gif IsNew A read-only property that returns a Boolean value that indicates whether a newly created InfoPath form has been saved. Read-only
Bb230083.properties(en-us,office.12).gif IsReadOnly A read-only property that returns a Boolean value that indicates whether an InfoPath form is in read-only mode. Read-only
Bb230083.properties(en-us,office.12).gif IsRecovered A read-only property that returns a Boolean value that indicates whether an InfoPath form was last saved by an AutoRecover save operation. Read-only
Bb230083.properties(en-us,office.12).gif IsSigned A read-only property that returns a Boolean value that indicates whether an InfoPath form has been digitally signed using digital signatures. Read-only
Bb230083.properties(en-us,office.12).gif Language Sets or retrieves the xml:lang attribute of an InfoPath form's underlying XML document. Read/write
Bb230083.properties(en-us,office.12).gif Permission A read-only property that returns a Permission object associated with the form. Read-only
Bb230083.properties(en-us,office.12).gif QueryAdapter A read-only property that returns a reference to the data adapter object that is associated with an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif Role Sets or retrieves the user's current role. Read/write
Bb230083.properties(en-us,office.12).gif SignedDataBlocks A read-only property that returns a reference to the SignedDataBlocks collection that is associated with an XDocument object. Read-only
Bb230083.properties(en-us,office.12).gif Solution A read-only property that returns a reference to the Solution object that is associated with an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif UI Returns a reference to the InfoPath UI object. Read-only
Bb230083.properties(en-us,office.12).gif URI A read-only property that returns a string value containing the Uniform Resource Identifier (URI) of an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif Util Read-only property that returns a reference to the Util object. Read-only
Bb230083.properties(en-us,office.12).gif View A read-only property that returns a reference to the View object associated with an InfoPath form. Read-only
Bb230083.properties(en-us,office.12).gif ViewInfos A read-only property that returns a reference to the ViewInfos collection associated with an InfoPath form. Read-only

Events

 NameDescription
Bb230083.events(en-us,office.12).gif OnAfterImport Occurs after the import (or merge) operation has successfully completed.
Bb230083.events(en-us,office.12).gif OnContextChange Occurs after the context node changes.
Bb230083.events(en-us,office.12).gif OnLoad Occurs after an InfoPath form has been loaded, but before any views have been initialized.
Bb230083.events(en-us,office.12).gif OnMergeRequest Occurs when the merge operation is invoked either from the InfoPath user interface or from the command line by using the /aggregate option.
Bb230083.events(en-us,office.12).gif OnSaveRequest Occurs when the save operation is invoked from the InfoPath user interface or by using the Save or SaveAs method of the XDocument object in the InfoPath object model.
Bb230083.events(en-us,office.12).gif OnSign Occurs after a set of signed data has been selected to sign.
Bb230083.events(en-us,office.12).gif OnSubmitRequest Occurs when the submit operation is invoked either from the InfoPath user interface or by using the Submit method of the XDocument object in the InfoPath object model.
Bb230083.events(en-us,office.12).gif OnSwitchView Occurs after a view in an InfoPath form has been successfully switched.
Bb230083.events(en-us,office.12).gif OnVersionUpgrade Occurs when the version number of an InfoPath form being opened is older than the version number of the form template on which it is based.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.