API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.SelectionInfo property
Returns the SelectionInfo object
Syntax:
Property Get SelectionInfo() As SelectionInfo
Remarks:
The SelectionInfo property returns a SelectionInfo object.
Examples:
The following VBA example displays the number of objects which are currently selected.
Sub Test()
MsgBox "There are currently " & ActiveDocument.SelectionInfo.Count & _
  " objects selected." 
End Sub