CustomTaskPane.Window Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the document window that the custom task pane is associated with.
public:
property System::Object ^ Window { System::Object ^ get(); };
public object Window { get; }
member this.Window : obj
Public ReadOnly Property Window As Object
Property Value
An object that represents the document window that the custom task pane is associated with.
Exceptions
The Microsoft.Office.Tools.CustomTaskPane.Dispose method of the CustomTaskPane has already been called.
Remarks
To specify the document window that the custom task pane is associated with, use the window
parameter of the Add(UserControl, String, Object) method.
The type of the Window property depends on the application. The following table lists the valid types of the window
parameter.
Application | Parameter type |
---|---|
Word | Microsoft.Office.Interop.Word.Window |
Excel | Microsoft.Office.Interop.Excel.Window |
PowerPoint | Microsoft.Office.Interop.PowerPoint.DocumentWindow |
InfoPath | Microsoft.Office.Interop.InfoPath.WindowObject |
Outlook | Microsoft.Office.Interop.Outlook.Explorer -or- Microsoft.Office.Interop.Outlook.Inspector |
For more information, see Custom Task Panes.