View.Window Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une référence à un Window objet associé à la vue.
public:
abstract property Microsoft::Office::InfoPath::Window ^ Window { Microsoft::Office::InfoPath::Window ^ get(); };
public abstract Microsoft.Office.InfoPath.Window Window { get; }
member this.Window : Microsoft.Office.InfoPath.Window
Public MustOverride ReadOnly Property Window As Window
Valeur de propriété
Window associé à l’affichage actuel.
Exemples
L’exemple suivant utilise la propriété Window de la View classe pour obtenir une référence à l’objet Window associé à l’affichage actuel.
Window myViewWindow = this.CurrentView.Window;
Dim myViewWindow As Window = Me.CurrentView.Window
Remarques
L’objet Window retourné représente la fenêtre Microsoft InfoPath actuellement active. Il est également accessible via l’objet WindowCollection et la ActiveWindow propriété de la Application classe .
Seuls les formulaires qui s’exécutent dans le même domaine que le formulaire actuellement ouvert ou les formulaires disposant d’autorisations inter-domaines peuvent accéder à ce membre.
Vous pouvez uniquement accéder à ce type ou à ce membre à partir du code exécuté dans les formulaires ouverts dans Microsoft InfoPath Filler.