Previous Document Next Document

Object Model Reference : Classes : T : TextRange : Methods : TextRange.Delete


TextRange.Delete

Sub Delete()

Description

Member of TextRange

The Delete method removes specified characters from a text range.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.