Object Model Reference : Classes : T : TextRange : Methods : TextRange.Delete |
Sub Delete()
Member of TextRange
The Delete method removes specified characters from a text range.
The following VBA example deletes the first word in the text range.
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.Story.Words.First.Delete |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.