Object Model Reference : Classes : T : TextRange : Methods : TextRange.Select |
Sub Select()
Member of TextRange
The Select method selects the characters in a text range.
The following VBA example places the text in editing mode and selects the first word.
Sub Test() |
Dim d As Document |
Dim t As Text |
Dim s As Shape |
Set d = CreateDocument |
Set s = d.ActiveLayer.CreateParagraphText(3, 3, 5, 5, "This is an example.") |
Set t = s.Text |
t.BeginEdit |
t.Story.Words.First.Select |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.