Share via


HTMLTaskPaneExternal.XDocument property

Gets a reference to the XDocument associated with a custom task pane.

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 HTMLTaskPaneExternal
Dim value As _XDocument

value = instance.XDocument
_XDocument XDocument { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath._XDocument

Remarks

The XDocument object returned represents the form's underlying XML document that is associated with the custom task pane.

Examples

In the following example, the HTMLTaskPaneExternal object is used through the external property of the Dynamic HTML (DHTML) window object to set a reference to the XDocument object that is part of the InfoPath object model:

var objXDoc;

objXDoc  = window.external.XDocument;
objXDoc.View.SwitchView("View2");

See also

Reference

HTMLTaskPaneExternal interface

HTMLTaskPaneExternal members

Microsoft.Office.Interop.InfoPath namespace