API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.Selected property
Returns or sets the object's selection state; single selects if selecting
Syntax:
Property Get Selected() As Boolean
Property Let Selected(ByVal Value As Boolean)
Remarks:
The Selected property returns or specifies whether a shape is selected. Changing the value of this property adds or removes the shape to or from the current selection. See also the Shape.CreateSelection, Document.ClearSelection, ShapeRange.AddToSelection, and ShapeRange.RemoveFromSelection methods.
Examples:
The following VBA example removes any rectangles from the current selection.
Sub Test()
Dim s As Shape
For Each s In ActiveSelection.Shapes
  If s.Type = cdrRectangleShape Then s.Selected = False
  Next s

End Sub