Replace a certain text region with a new value.
You can use \r\n
or \n
in value
and they will be normalized to the current document.
The range this operation should remove.
The new text this operation should insert after removing location
.
The position where the new text should be inserted.
The new text this operation should insert.
A complex edit that will be applied in one transaction on a TextEditor. This holds a description of the edits and if the edits are valid (i.e. no overlapping regions, document was not changed in the meantime, etc.) they can be applied on a document associated with a text editor.