View2.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 a reference to the window associated with the view.
public:
property Microsoft::Office::Interop::InfoPath::SemiTrust::WindowObject ^ Window { Microsoft::Office::Interop::InfoPath::SemiTrust::WindowObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject Window { get; }
member this.Window : Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject
Public ReadOnly Property Window As WindowObject
Property Value
The WindowObject object associated with the current view.
Implements
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.<span class="label">Window</span>.TaskPanes[0];
Remarks
The WindowObject object returned represents the currently active Microsoft InfoPath 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.