API Documentation > CorelDRAW > 2025-v26 > IVGApplicationEvents
IVGApplicationEvents.QueryDocumentClose method
Invoked when the user responds to a request to close a document
Syntax:
Sub QueryDocumentClose(ByVal Doc As Document, ByRef Cancel As Boolean)
Parameters:
Name Type Description
Doc
Cancel
Boolean