ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler Délégué

Définition

Type délégué utilisé pour ajouter un gestionnaire d’événements pour l' ProtectedViewWindowBeforeClose événement. L’événement ProtectedViewWindowBeforeClose se produit immédiatement avant la fermeture d’une fenêtre en mode protégé ou 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 de l' WdProtectedViewCloseReason énumération 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. Remarquest l’événement ProtectedViewWindowsBeforeClose est appelé dans le cadre de la Edit(Object, Object, Object) méthode, la valeur Cancel true ne produit aucune action.

Attributs

S’applique à