Delete Ranges in Document
Contents
[
Hide
]
Aspose.Words - Delete Ranges in Document
Range allows the deletion of all characters of the range by calling Range.delete.
Java
doc.getSections().get(0).getRange().delete();
String text = doc.getRange().getText();
Apache POI HWPF XWPF - Delete Ranges in Document
delete method can be used after retrieving Section of Range.
Java
doc.getRange().getSection(0).delete();
String text = doc.getRange().text();
Download Running Code
Download Sample Code
For more details, visit Deleting Text.