Previous Document Next Document
ShapeRange.CreateSelection

Sub CreateSelection()

Member of ShapeRange

The CreateSelection method creates a selection from the shapes in a range.

Unlike the AddToSelection method, the CreateSelection method destroys any previous selection.

The following code example selects all of the ellipses on the current page:

Sub Test() 
 ActivePage.FindShapes(Type:=cdrEllipseShape).CreateSelection 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.