Previous Document Next Document

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


Shape.CreateSelection

Sub CreateSelection()

Description

Member of Shape

The CreateSelection method selects a shape, automatically deselecting all other shapes on the page.

 
See also the Shape.Selected property.
VBA example

The following VBA 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 2013 Corel Corporation. All rights reserved.