internal void OnDocumentChanged(DocumentChangeEventArgs e) { if (storedCaretOffset >= 0) { int newCaretOffset = e.GetNewOffset(storedCaretOffset, AnchorMovementType.AfterInsertion); var doc = textArea.Document; if (doc != null) { Position = new TextViewPosition(doc.GetLocation(storedCaretOffset), position.VisualColumn); } } storedCaretOffset = -1; }
public abstract Selection UpdateOnDocumentChange(DocumentChangeEventArgs e);
void OnChanged(DocumentChangeEventArgs e) { Caret.OnDocumentChanged(e); Selection = selection.UpdateOnDocumentChange(e); }
public override Selection UpdateOnDocumentChange(DocumentChangeEventArgs e) { throw new NotImplementedException(); }