public void replaceText (IndexRange range, String text)

Replaces a range of characters with the given text.

Parameters:
range    The range of text to replace. The range object must not be null.
text    The text that is to replace the range. This must not be null.

See also:
replaceText(int, int, String)