編輯

共用方式為


ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler Delegate

Definition

A Delegate type used to add an event handler for the ProtectedViewWindowBeforeClose event. The ProtectedViewWindowBeforeClose event occurs immediately before a protected view window or a document in a protected view window closes.

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)

Parameters

PvWindow
ProtectedViewWindow

The protected view window that is closed.

CloseReason
Int32

A constant in the WdProtectedViewCloseReason enumeration that specifies the reason the protected view window is closed.

Cancel
Boolean

false when the event occurs. If the event procedure sets this argument to true, the window does not close when the procedure is finished.NoteIf the ProtectedViewWindowsBeforeClose event is called as part of the Edit(Object, Object, Object) method, setting Cancel to true produces no action.

Attributes

Applies to