Aspose.Words

Deleting Text

Range allows the deletion of all characters of the range by calling Range.Delete.

Example RangesDeleteText

Shows how to delete all characters of a range.

[Java]

 

Document doc = new Document(getMyDir() + "Document.doc");

doc.getSections().get(0).getRange().delete();