Previous Document Next Document
Text.Selection

Property Selection As TextRange

Member of Text

The Selection property returns the selected text in the text stream as a TextRange object.

The Selection property returns a read-only value.

The following code example displays the selected text if the active shape is a text shape:

Sub Test() 
 If ActiveShape.Type = cdrTextShape Then 
  MsgBox ActiveShape.Text.Selection.Text 
 End If 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.