NodeRange Property
Returns a Range object that represents the portion of a document that is contained in this node.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
Syntax
public Range Range { get; }

Property Value

Type: Range
Examples
Shows how to delete all characters of a range.
// Open Word document.
Document doc = new Document(MyDir + "Range.DeleteSection.doc");

// The document contains two sections. Each section has a paragraph of text.
Console.WriteLine(doc.GetText());

// Delete the first section from the document.
doc.Sections[0].Range.Delete();

// Check the first section was deleted by looking at the text of the whole document again.
Console.WriteLine(doc.GetText());
See Also