XDocuments Collection Members

InfoPath Developer Reference

Contains an XDocument object for each InfoPath form that is currently open.

Methods

  Name Description
Bb230084.methods(en-us,office.12).gif Close Closes the specified InfoPath form.
Bb230084.methods(en-us,office.12).gif New Creates a new InfoPath form based on the specified form.
Bb230084.methods(en-us,office.12).gif NewFromSolution Creates a new InfoPath form based on the specified form template.
Bb230084.methods(en-us,office.12).gif NewFromSolutionWithData Creates a new InfoPath form using the specified XML data and form template.
Bb230084.methods(en-us,office.12).gif Open Opens the specified InfoPath form.

Properties

  Name Description
Bb230084.properties(en-us,office.12).gif Count A read-only property that returns a count of the number of XDocument objects contained in the XDocuments collection. Read-only
Bb230084.properties(en-us,office.12).gif Item A read-only property that returns a reference to the specified XDocument object from the XDocuments collection. Read-only