Object Model Reference : Classes : T : Text : Properties : Text.Selection |
Property Selection As TextRange
Member of Text
The Selection property returns the selected text in a text stream as a TextRange object.
The Selection property returns a read-only value.
The following VBA 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 2013 Corel Corporation. All rights reserved.