public void ReplaceCurrentLine(IEnumerable <EditableRun> textRuns)
        {
            int currentCharIndex = CharIndex;

            CurrentLine.ReplaceAll(textRuns);
            CurrentLine.TextLineReCalculateActualLineSize();
            CurrentLine.RefreshInlineArrange();
            EnsureCurrentTextRun(currentCharIndex);
        }
Esempio n. 2
0
        public void ClearCurrentLine()
        {
            int currentCharIndex = CharIndex;

            CurrentLine.ReplaceAll(null);
            CurrentLine.TextLineReCalculateActualLineSize();
            CurrentLine.RefreshInlineArrange();
            EnsureCurrentTextRun(currentCharIndex);
        }