public bool IsCommentedOrQuoted(DocumentLocation DL) { return(currentView.Document[DL.LineNumber].IsCommentedOrQuoted(DL.ColumnNumber)); }
public int CharNum(DocumentLocation DL) { return(this[DL.LineNumber].StartIndex + DL.ColumnNumber); }
public string ToString(DocumentLocation DL) { return(currentView.ToString(DL)); }
public void Insert(DocumentLocation DL, string Contents) { currentView.Insert(Contents, DL); }
public UndoElementDeleteChar(DocumentLocation DL, char c) { this.type = UndoType.DeleteChar; this.dl = DL; this.c = c; }
public UndoElementInsertChar(DocumentLocation DL, char c) { this.type = UndoType.InsertChar; this.dl = DL; this.c = c; }
public bool Contains(DocumentLocation DL) { return((start.LineNumber < DL.LineNumber && end.LineNumber > DL.LineNumber) || (start.LineNumber == DL.LineNumber && start.ColumnNumber <= DL.ColumnNumber && (end.LineNumber > DL.LineNumber || end.ColumnNumber >= DL.ColumnNumber)) || (start.LineNumber < DL.LineNumber && end.ColumnNumber >= DL.ColumnNumber)); }
internal DocumentRange(DocumentLocation DL, DocumentRangeLength DRL, Document Document) { start = DL; end = Document.EnsureValid(new DocumentLocation(DL.LineNumber + DRL.Lines, DL.ColumnNumber + DRL.Columns)); }
static DocumentLocation() { BOF = new DocumentLocation(0, 0); }