public void ReplaceLine(int lineNum, IEnumerable<EditableRun> textruns)
{
if (textLineWriter.LineNumber == backGroundTextLineWriter.LineNumber)
{
int prevIndex = textLineWriter.CharIndex;
textLineWriter.ReplaceCurrentLine(textruns);
}
else
{
backGroundTextLineWriter.MoveToLine(lineNum);
backGroundTextLineWriter.ReplaceCurrentLine(textruns);
}
}
public void LoadTextRun(IEnumerable<EditableRun> runs)