public MdTextViewLine(MdTextViewLineCollection collection, MonoTextEditor textEditor, DocumentLine line, TextViewMargin.LayoutWrapper layoutWrapper) { this.collection = collection; this.layoutWrapper = layoutWrapper; this.textEditor = textEditor; this.line = line; this.lineSpan = new SnapshotSpan(textEditor.VisualSnapshot, line.Offset, line.LengthIncludingDelimiter); this.lineBreakLength = line.DelimiterLength; }
public MdTextViewLine(MdTextViewLineCollection collection, MonoTextEditor textEditor, DocumentLine line, int lineNumber, TextViewMargin.LayoutWrapper layoutWrapper) { this.collection = collection; this.layoutWrapper = layoutWrapper; this.textEditor = textEditor; this.line = line; this.LineNumber = lineNumber; Snapshot = textEditor.VisualSnapshot; this.LineBreakLength = line.DelimiterLength; }