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