View.Window Property
Gets a reference to the window associated with the view.
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 WindowObject
Get
'Usage
Dim instance As View
Dim value As WindowObject
value = instance.Window
WindowObject Window { get; }
Property Value
Type: Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject
Remarks
The WindowObject object returned represents the currently active Microsoft InfoPath 2010 window. It can also be accessed through the WindowsCollection collection.
Important
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
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];