Share via


InfoPathEditor.XDocument property

Gets an XDocument object associated with the hosted InfoPathEditor object.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property XDocument As XDocument
    Get
'Usage
Dim instance As InfoPathEditor
Dim value As XDocument

value = instance.XDocument
XDocument XDocument { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.XDocument
An XDocument object associated with the hosted InfoPathEditor object.

Remarks

The XDocument object returned can be used to access and work with members of the InfoPath object model.

For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

See also

Reference

InfoPathEditor interface

InfoPathEditor members

Microsoft.Office.Interop.InfoPath namespace