편집

다음을 통해 공유


View2.Window Property

Definition

Gets a reference to the window associated with the view.

public:
 property Microsoft::Office::Interop::InfoPath::WindowObject ^ Window { Microsoft::Office::Interop::InfoPath::WindowObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.WindowObject Window { get; }
member this.Window : Microsoft.Office.Interop.InfoPath.WindowObject
Public ReadOnly Property Window As WindowObject

Property Value

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 Office InfoPath 2003 window. It can also be accessed through the WindowsCollection collection.

Applies to