PowerPoint) (Application.ProtectedViewWindowBeforeClose 事件

在“受保护的视图”窗口或“受保护的视图”窗口中的文档关闭之前立即发生。

语法

expression。 ProtectedViewWindowBeforeClose( _ProtViewWindow_, _ProtectedViewCloseReason_, _Cancel_ )

expression:表示 Application 对象的变量。

参数

名称 必需/可选 数据类型 说明
ProtViewWindow 必需 ProtectedViewWindow 关闭的受保护视图窗口。
ProtectedViewCloseReason 必需 PpProtectedViewCloseReason 一个常量,用于指定关闭受保护视图窗口的原因。
Cancel 必需 Boolean 假 的事件发生时。 如果该事件过程将此参数设置为 True ,则过程完成后不关闭该窗口。

返回值

Nothing

备注

如果在 ProtectedViewWindow.Edit 方法中调用 ProtectedViewWindowsBeforeClose 事件,将 Cancel 设置为 True 不执行任何操作。

另请参阅

Application 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。