ApplicationEvents4_DocumentBeforeCloseEventHandler Delegat

Definition

Ein Delegattyp , der zum Hinzufügen eines Ereignishandlers für das DocumentBeforeClose Ereignis verwendet wird. Das DocumentBeforeClose-Ereignis tritt unmittelbar vor dem Schließen eines geöffneten Dokuments auf.

public delegate void ApplicationEvents4_DocumentBeforeCloseEventHandler(Document ^ Doc, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ApplicationEvents4_DocumentBeforeCloseEventHandler(Document Doc, out bool Cancel);
type ApplicationEvents4_DocumentBeforeCloseEventHandler = delegate of Document * bool -> unit
Public Delegate Sub ApplicationEvents4_DocumentBeforeCloseEventHandler(Doc As Document, ByRef Cancel As Boolean)

Parameter

Doc
Document

Das Dokument, das geschlossen wird.

Cancel
Boolean

False, wenn das Ereignis auftritt. Wenn die Ereignisprozedur dieses Argument auf True festgelegt wird, wird das Dokument beim Beenden der Prozedur nicht geschlossen.

Attribute

Gilt für: