/// <inheritdoc/> public void Clear() { TextLines.Clear(); Text.Clear(); CaretIndex = 0; _historyIndex = -1; InvalidateArrange(); }