View2.Window Propriété

Définition

Obtient une référence à la fenêtre associée à la vue.

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

Valeur de propriété

Objet WindowObject associé à la vue actuelle.

Implémente

Exemples

Dans l’exemple suivant, la propriété Window de l’objet View est utilisée pour définir une référence au premier volet Office contenu dans la TaskPanes collection :

[C#]

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

Remarques

L’objet WindowObject retourné représente la fenêtre Microsoft InfoPath actuellement active. Il est également accessible via la WindowsCollection collection.

Important : ce membre est accessible uniquement par les formulaires s’exécutant dans le même domaine que le formulaire actuellement ouvert, ou par les formulaires auxquels des autorisations inter-domaines ont été accordées.

S’applique à