Previous Document Next Document
Shape.CreateSelection

Sub CreateSelection()

Member of Shape

The CreateSelection method selects a shape. All other shapes on the page are deselected automatically.

See also the Selected property.

The following code example selects a shape with the name MyRectangle:

Sub Test() 
 Dim s As Shape 
 Set s = ActivePage.FindShape("MyRectangle") 
 If Not s Is Nothing Then 
  s.CreateSelection 
 Else 
  ActiveDocument.ClearSelection 
 End If 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.