ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler 代理人
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
イベントのイベント ハンドラーProtectedViewWindowBeforeCloseを追加するために使用されるデリゲート型。 ProtectedViewWindowBeforeClose イベントは、保護されたビュー ウィンドウまたは保護されたビュー ウィンドウ内のドキュメントが閉じる直前に発生します。
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)
パラメーター
- PvWindow
- ProtectedViewWindow
閉じる保護されたビュー ウィンドウです。
- CloseReason
- Int32
保護されたビュー ウィンドウが WdProtectedViewCloseReason 閉じられる理由を指定する列挙体の定数。
- Cancel
- Boolean
イベントが発生した場合は false。 イベント プロシージャでこの引数を true に設定した場合、プロシージャの終了時にウィンドウは閉じません。注:ProtectedViewWindowsBeforeClose イベントがメソッドのEdit(Object, Object, Object)一部として呼び出された場合、true に設定Cancel
してもアクションは生成されません。
- 属性