public void ReplaceCurrentLine(IEnumerable <EditableRun> textRuns) { int currentCharIndex = CharIndex; CurrentLine.ReplaceAll(textRuns); CurrentLine.TextLineReCalculateActualLineSize(); CurrentLine.RefreshInlineArrange(); EnsureCurrentTextRun(currentCharIndex); }
public void ClearCurrentLine() { int currentCharIndex = CharIndex; CurrentLine.ReplaceAll(null); CurrentLine.TextLineReCalculateActualLineSize(); CurrentLine.RefreshInlineArrange(); EnsureCurrentTextRun(currentCharIndex); }