Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.Selected


Shape.Selected

Property Selected As Boolean

Description

Member of Shape

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.

 
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.