次の方法で共有


Window2.XDocument プロパティ

定義

オブジェクトによって表されるウィンドウに関連付けられているオブジェクトへの XDocument 参照を WindowObject 取得します。

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

プロパティ値

実装

次の例では、Window オブジェクトの XDocument プロパティを使用して、現在アクティブなウィンドウに関連付けられている、フォームの基になる XML ドキュメントへの参照を設定します。

XDocument xDoc = thisApplication.ActiveWindow.<span class="label">XDocument</span>;

注釈

XDocument プロパティは、編集ウィンドウの種類でのみ使用できます。デザイン ウィンドウの種類で使用すると、エラーが返されます。 また、フォーム領域で開いているフォームがない場合もエラーが返されます。

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

適用対象