/// <summary> /// 文字列設定。 /// </summary> public void SetDocument(string text) { using (var reader = new TextLinesReader(new StringReader(text))) { _doc.SetDocument(reader.ReadLines()); } }
/// <summary> /// /// </summary> internal static TextLine[] ToLineModels(string text) { using (var reader = new TextLinesReader(new StringReader(text))) { return(reader.ReadLines() .Select(line => new TextLine(line)) .ToArray()); } }