Поделиться через


EApplication_ProtectedViewWindowBeforeCloseEventHandler Delegate

A delegate for an event in the corresponding object. After you implement a callback method for the event, use this delegate to connect the callback method to the event.

Occurs immediately before a protected view window or a document in a protected view window closes.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub EApplication_ProtectedViewWindowBeforeCloseEventHandler ( _
    ProtViewWindow As ProtectedViewWindow, _
    ProtectedViewCloseReason As PpProtectedViewCloseReason, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New EApplication_ProtectedViewWindowBeforeCloseEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void EApplication_ProtectedViewWindowBeforeCloseEventHandler(
    ProtectedViewWindow ProtViewWindow,
    PpProtectedViewCloseReason ProtectedViewCloseReason,
    out bool Cancel
)

Parameters

  • Cancel
    Type: System.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.

Remarks

If the EApplication_ProtectedViewWindowBeforeCloseEventHandler event is called as part of the Edit(String) method of the ProtectedViewWindow object, setting Cancel to true produces no action.

See Also

Reference

Microsoft.Office.Interop.PowerPoint Namespace

ProtectedViewWindowBeforeClose