Previous Document Next Document

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


Shape.AddToSelection

Sub AddToSelection()

Description

Member of Shape

The AddToSelection method adds a shape to a selection.

 
This method does not work with selection shapes.
VBA example

The following VBA example selects all ellipses and rectangles on the active page.

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.