AppEvents_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 Mode protégé ou d’un classeur dans une fenêtre Mode protégé.

public delegate void AppEvents_ProtectedViewWindowBeforeCloseEventHandler(ProtectedViewWindow ^ Pvw, XlProtectedViewCloseReason Reason, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void AppEvents_ProtectedViewWindowBeforeCloseEventHandler(ProtectedViewWindow Pvw, XlProtectedViewCloseReason Reason, out bool Cancel);
Public Delegate Sub AppEvents_ProtectedViewWindowBeforeCloseEventHandler(Pvw As ProtectedViewWindow, Reason As XlProtectedViewCloseReason, ByRef Cancel As Boolean)

Paramètres

Pvw
ProtectedViewWindow

Objet qui représente la fenêtre Mode protégé fermée.

Reason
XlProtectedViewCloseReason

Constante qui spécifie la raison pour laquelle la fenêtre Mode protégé est fermée.

Cancel
Boolean

false lorsque l’événement se produit. Si la procédure événementielle définit ce paramètre sur true, la fenêtre ne se ferme pas lorsque la procédure est terminée.

Attributs

S’applique à