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