Previous Document Next Document

Object Model Reference : Classes : T : Text : Properties : Text.Selection


Text.Selection

Property Selection As TextRange

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.