Share via


View2.Window Property

Gets a reference to the window associated with the view.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property Window As WindowObject
    Get
'Usage
Dim instance As View2
Dim value As WindowObject

value = instance.Window
WindowObject Window { get; }

Property Value

Type: Microsoft.Office.Interop.InfoPath.WindowObject

Implements

View.Window

Remarks

The WindowObject object returned represents the currently active Microsoft Office InfoPath 2003 window. It can also be accessed through the WindowsCollection collection.

Examples

In the following example, the Window property of the View object is used to set a reference to the first task pane contained in the TaskPanes collection:

[C#]

TaskPane taskPane;
taskPane = thisXDocument.View.Window.TaskPanes[0];

See Also

Reference

View2 Interface

View2 Members

Window Overload

Microsoft.Office.Interop.InfoPath Namespace