Previous Document Next Document

Object Model Reference : Classes : S : Shape : Methods : Shape.RemoveFromSelection


Shape.RemoveFromSelection

Sub RemoveFromSelection()

Description

Member of Shape

The RemoveFromSelection method removes a shape from a selection.

 
This method does not work if the shape is a selection shape.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.