Share via


_Application3.ActiveWindow - Propriété

Obtient une référence à un objet WindowObject représentant la fenêtre active.

Espace de noms :  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly :  Microsoft.Office.Interop.InfoPath.SemiTrust (dans Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntaxe

'Déclaration
ReadOnly Property ActiveWindow As WindowObject
    Get
'Utilisation
Dim instance As _Application3
Dim value As WindowObject

value = instance.ActiveWindow
WindowObject ActiveWindow { get; }

Valeur de propriété

Type : Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject

Implémentations

_Application2.ActiveWindow
_Application.ActiveWindow

Remarques

La propriété ActiveWindow vous permet de bénéficier d'un accès immédiat à la fenêtre actuellement affichée par un utilisateur et d'utiliser ensuite les propriétés et les méthodes de l'objet Window qu'elle renvoie.

Important

Vous pouvez accéder à ce membre sans restrictions.

Exemples

Dans l'exemple ci-dessous, la propriété ActiveWindow est utilisée pour accéder à la propriété MailEnvelope de l'objet WindowObject qui renvoie un objet MailEnvelopeObject.

MailEnvelope email = thisApplication.ActiveWindow.MailEnvelope;
email.Subject = getNode(@"/mtg:meetingAgenda/mtg:subject").text;
email.To = aliases + "; ";
email.Visible = true;

Voir aussi

Référence

_Application3 interface

_Application3 - Membres

ActiveWindow - Surcharge

Microsoft.Office.Interop.InfoPath.SemiTrust - Espace de noms