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::SemiTrust::_XDocument ^ XDocument { Microsoft::Office::Interop::InfoPath::SemiTrust::_XDocument ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust._XDocument XDocument { get; }
member this.XDocument : Microsoft.Office.Interop.InfoPath.SemiTrust._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.

Important: This member can be accessed without restrictions.

Applies to