AppEvents_ProtectedViewWindowBeforeEditEventHandler 委托

定义

用于为事件添加事件处理程序的ProtectedViewWindowBeforeEdit委托类型。 在指定的“受保护的视图”窗口中对工作簿启用编辑之前,将立即发生 ProtectedViewWindowBeforeEdit 事件。

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

参数

Pvw
ProtectedViewWindow

包含启用编辑的工作簿的“受保护的视图”窗口。

Cancel
Boolean

当事件发生时为 false。 如果事件过程将此参数设置为 true,则工作簿上不启用编辑。

属性

适用于