AppEvents_ProtectedViewWindowBeforeCloseEventHandler Délégué
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.
Type Delegate utilisé pour ajouter un handler d’événement pour ProtectedViewWindowBeforeClose l’événement. L’événement ProtectedViewWindowBeforeClose se produit immédiatement avant la fermeture d’une fenêtre en affichage protégé ou d’un workbook dans une fenêtre en affichage 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
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 en affichage protégé est fermée.
- Cancel
- Boolean
false lorsque l’événement se produit. Si la procédure événement elle-même définit ce paramètre sur true,la fenêtre ne se ferme pas lorsque la procédure est terminée.
- Attributs