Share via


HTMLTaskPaneExternal.Window property

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

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

Remarks

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

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 namespace