Skip to content

EditableTextDocument.UndoSizeLimit property

Most recent edits to keep, oldest dropped past it. Negative keeps every edit; zero records none, which is how a control that must not retain what was typed opts out of undo. A group counts as the edits it holds, and the limit never leaves half of one behind.

public int UndoSizeLimit { get; set; }