ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler Délégué

Définition

Type De délégué utilisé pour ajouter un gestionnaire d’événements pour l’événement ProtectedViewWindowBeforeClose . L’événement ProtectedViewWindowBeforeClose se produit immédiatement avant la fermeture d’une fenêtre en mode protégé ou de la fermeture d’un document dans une fenêtre en mode protégé.

public delegate void ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler(ProtectedViewWindow ^ PvWindow, int CloseReason, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler(ProtectedViewWindow PvWindow, int CloseReason, out bool Cancel);
type ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler = delegate of ProtectedViewWindow * int * bool -> unit
Public Delegate Sub ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler(PvWindow As ProtectedViewWindow, CloseReason As Integer, ByRef Cancel As Boolean)

Paramètres

PvWindow
ProtectedViewWindow

Fenêtre en mode protégé qui est fermée.

CloseReason
Int32

Constante dans l’énumération WdProtectedViewCloseReason qui spécifie la raison pour laquelle la fenêtre en mode protégé est fermée.

Cancel
Boolean

false lorsque l’événement se produit. Si la procédure événementielle affecte la valeur true à cet argument, la fenêtre ne se ferme pas lorsque la procédure est terminée. RemarqueSi l’événement ProtectedViewWindowsBeforeClose est appelé dans le cadre de la méthode, la définition de la Edit(Object, Object, Object) valeur Canceltrue ne produit aucune action.

Attributs

S’applique à