Edit

Share via


HTMLTaskPaneExternal.XDocument Property

Definition

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

public:
 property Microsoft::Office::Interop::InfoPath::_XDocument ^ XDocument { Microsoft::Office::Interop::InfoPath::_XDocument ^ get(); };
public Microsoft.Office.Interop.InfoPath._XDocument XDocument { get; }
member this.XDocument : Microsoft.Office.Interop.InfoPath._XDocument
Public ReadOnly Property XDocument As _XDocument

Property Value

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.<span class="label">XDocument</span>;
objXDoc.View.SwitchView("View2");

Remarks

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

Applies to