Deletes the region of text from
offset
to
offset + length
, and replaces it with
text
.
Parameters:
-
offset - Location in Document
-
length - Length of text to delete
-
string - Text to insert, null indicates no text to insert
-
attrs - AttributeSet indicating attributes of inserted text,
null is legal.
Throws:
-
BadLocationException - the given insert is not a
valid position within the document