API Documentation > CorelDRAW > 2025-v26 > Window > IVGWindow
Window.Document property
Gets the window document
Syntax:
Property Get Document() As Document
Remarks:
The Document property returns a read-only reference to the document to which a window belongs.
Examples:
The following VBA example displays the title of the document.
Sub Test()
Dim CDoc As Document
Set CDoc = ActiveWindow.Document
MsgBox "The title of this document is: " & CDoc.Title
Set CDoc = Nothing 
End Sub