HTMLTaskPaneExternal.Window Property

Gets a reference to the WindowObject object 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 Window As Window
    Get
'Usage
Dim instance As HTMLTaskPaneExternal
Dim value As Window

value = instance.Window
Window Window { get; }

Property Value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.Window

Remarks

The Window object returned represents the currently active Microsoft InfoPath 2010 window 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 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.Window;
objWindow.MailEnvelope.Visible = true;

See Also

Reference

HTMLTaskPaneExternal Interface

HTMLTaskPaneExternal Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace