Gets a reference to the window associated with the view.
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Property valueType: Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject
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.
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:
TaskPane taskPane; taskPane = thisXDocument.View.Window.TaskPanes;