Example #1
0
		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;
		}
Example #2
0
		public abstract Selection UpdateOnDocumentChange(DocumentChangeEventArgs e);
Example #3
0
		void OnChanged(DocumentChangeEventArgs e)
		{
			Caret.OnDocumentChanged(e);
			Selection = selection.UpdateOnDocumentChange(e);
		}
		public override Selection UpdateOnDocumentChange(DocumentChangeEventArgs e)
		{
			throw new NotImplementedException();
		}