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