API Documentation > CorelDRAW > 2025-v26 > Windows > IVGWindows
Windows.Count property
Gets the number of items in the collection of windows
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of windows in a Windows collection.
Examples:
The following VBA example displays the number of windows in the Windows collection of the active document.
Sub Test()
MsgBox "There are: " & ActiveDocument.Windows.Count & _
  " windows in the Windows collection." 
End Sub