Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.CreateSelection


ShapeRange.CreateSelection

Sub CreateSelection()

Description

Member of ShapeRange

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

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

The following VBA example selects all the ellipses on the current page.

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.