次の方法で共有


View2.Window プロパティ

定義

ビューに関連付けられているウィンドウへの参照を取得します。

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

プロパティ値

現在の WindowObject ビューに関連付けられているオブジェクト。

実装

次の例では、オブジェクトの Window プロパティを View 使用して、コレクションに含まれる最初の作業ウィンドウへの参照を TaskPanes 設定します。

[C#]

TaskPane taskPane;
taskPane = thisXDocument.View.<span class="label">Window</span>.TaskPanes[0];

注釈

返されるオブジェクトは WindowObject 、現在アクティブな Microsoft InfoPath ウィンドウを表します。 コレクションからアクセス WindowsCollection することもできます。

重要: このメンバーにアクセスできるのは、現在開いているフォームと同じドメインで実行されているフォーム、またはクロスドメインアクセス許可が付与されているフォームのみです。

適用対象