public void AddLinesOnCurrentPosition(IList <string> lines) { var temp = new List <string>(lines); if (!temp.Any()) { return; } AddTextOnCurrentPosition(temp.First()); if (temp.Count == 1) { return; } NewLineFromCurrentPosition(); AddTextOnCurrentPosition(temp.Last()); temp.RemoveAt(0); temp.RemoveAt(temp.Count - 1); TextLines.InsertLines(CurrentString, temp); CurrentPosition.Str += temp.Count; }