XDocument Object Members
InfoPath Developer Reference |
Represents the underlying XML document of a InfoPath form.
Methods
Name | Description | |
---|---|---|
CloseDocument | Closes the form. | |
CreateDOM | Creates a new instance of the XML Document Object Model (DOM) in memory. | |
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. | |
GetDOM | Returns a reference to the XML Document Object Model (DOM) of the specified DataObject object associated with the XDocument object. | |
GetNamedNodeProperty | Returns the value of a named property for the specified XML node, which must be a nonattribute node in the main data source. | |
GetWorkflowTasks | Gets a reference to a WorkflowTasks collection for the current form. | |
GetWorkflowTemplates | Gets a reference to a WorkflowTemplates collection for the current form. | |
ImportDOM | Imports the specified XML data into the current form. | |
ImportFile | Imports the specified form into the current form. | |
NotifyHost | Provides a custom value to the hosting application or ASPX page. | |
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 | Saves the form to the specified Uniform Resource Locator (URL). | |
SetDataVariable | Sets the value of a predefined variable stored as a processing instruction attribute in the form's underlying XML document. | |
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. | |
SetNamedNodeProperty | 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 an InfoPath form. |
Properties
Name | Description | |
---|---|---|
DataAdapters | A read-only property that returns a reference to the DataAdapters collection that is associated with an InfoPath form. Read-only | |
DataObjects | A read-only property that returns a reference to the DataObjects collection that is associated with an InfoPath form. Read-only | |
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 | |
Errors | A read-only property that returns a reference to the Errors collection that is associated with an InfoPath form. Read-only | |
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 | |
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 | |
HostName | Gets the name of the application hosting InfoPath as a control. Read-only | |
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 | |
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 | |
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 | |
IsNew | A read-only property that returns a Boolean value that indicates whether a newly created InfoPath form has been saved. Read-only | |
IsReadOnly | A read-only property that returns a Boolean value that indicates whether an InfoPath form is in read-only mode. Read-only | |
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 | |
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 | |
Language | Sets or retrieves the xml:lang attribute of an InfoPath form's underlying XML document. Read/write | |
Permission | A read-only property that returns a Permission object associated with the form. Read-only | |
QueryAdapter | A read-only property that returns a reference to the data adapter object that is associated with an InfoPath form. Read-only | |
Role | Sets or retrieves the user's current role. Read/write | |
SignedDataBlocks | A read-only property that returns a reference to the SignedDataBlocks collection that is associated with an XDocument object. Read-only | |
Solution | A read-only property that returns a reference to the Solution object that is associated with an InfoPath form. Read-only | |
UI | Returns a reference to the InfoPath UI object. Read-only | |
URI | A read-only property that returns a string value containing the Uniform Resource Identifier (URI) of an InfoPath form. Read-only | |
Util | Read-only property that returns a reference to the Util object. Read-only | |
View | A read-only property that returns a reference to the View object associated with an InfoPath form. Read-only | |
ViewInfos | A read-only property that returns a reference to the ViewInfos collection associated with an InfoPath form. Read-only |
Events
Name | Description | |
---|---|---|
OnAfterImport | Occurs after the import (or merge) operation has successfully completed. | |
OnContextChange | Occurs after the context node changes. | |
OnLoad | Occurs after an InfoPath form has been loaded, but before any views have been initialized. | |
OnMergeRequest | Occurs when the merge operation is invoked either from the InfoPath user interface or from the command line by using the /aggregate option. | |
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. | |
OnSign | Occurs after a set of signed data has been selected to sign. | |
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. | |
OnSwitchView | Occurs after a view in an InfoPath form has been successfully switched. | |
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. |