Method Replace
Replace(long, long, string)
Replaces the text starting at the first position up to(but not including) the character at the last position with the given text.
void Replace(long from, long to, string value)
Parameters
from
longThe first position.
to
longThe last position.
value
stringThe value to replace the existing text with.
Remarks
This function puts the current insertion point position at to as a side effect.