Object Model Reference : Classes : S : Shape : Methods : Shape.RemoveFromSelection |
Sub RemoveFromSelection()
Member of Shape
The RemoveFromSelection method removes a shape from a selection.
• |
This method does not work if the shape is a selection shape.
|
The following VBA example removes all text objects from the selection.
Sub Test() |
Dim sr As ShapeRange |
Dim s As Shape |
Set sr = ActiveDocument.SelectionRange |
For Each s In sr |
If s.Type = cdrTextShape Then s.RemoveFromSelection |
Next s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.