Skip to content

MultiLineTextBox.ReplaceRange method

Replaces a document range the way a program does rather than a user: the caret rides along with the surrounding text, and neither IsReadOnly nor EditableRegions is consulted. The change stays undoable.

public void ReplaceRange(int start, int length, string? text)