Skip to content

TextChange constructor (1 of 2)

public TextChange(int offset, int removedLength, int insertedLength)

A replace that happened to a document. RemovedText carries what an edit took out; assigning a control’s text property replaces the document wholesale rather than editing it, and reports no removed text even though RemovedLength counts it.

public TextChange(int Offset, int RemovedLength, int InsertedLength, string RemovedText)