Edit

Share via


HTMLTaskPaneExternal.Window Property

Definition

Gets a reference to the WindowObject object associated with a custom task pane.

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

Property Value

Examples

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

Note: The following code resides in the HTML file that represents the external task pane.

var objWindow;

objWindow  = window.external.<span class="label">Window</span>;
objWindow.MailEnvelope.Visible = true;

Remarks

The Window object returned represents the currently active Microsoft InfoPath window that is associated with the custom task pane.

Important: This member can be accessed without restrictions.

Applies to