Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.SelectionRange


Document.SelectionRange

Property SelectionRange As ShapeRange

Description

Member of Document

The SelectionRange property represents the selected objects in the document and returns them as a shape range (or ShapeRange) object.

The SelectionRange property returns a read-only value.

VBA example

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