HTMLTaskPaneExternal.XDocument Property

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.SemiTrust._XDocument

Remarks

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

Important

This member can be accessed without restrictions.

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.SemiTrust Namespace