Previous Document Next Document
Document.SelectionRange

Property SelectionRange As ShapeRange

Member of Document

The SelectionRange property represents the selected objects in the document and returns them as a ShapeRange object.

The SelectionRange property returns a read-only value.

The following code example removes all text objects from the selection range.

Sub Test() 
 Dim sr As ShapeRange 
 Dim s As Shape 
 Set sr = ActiveDocument.SelectionRange 
 For Each s In sr 
  If s.Type = cdrTextShape Then s.RemoveFromSelection 
 Next s 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.