![]() |
![]() |
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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.