public int MoveOffsetTo(ITextSourceVersion other, int oldOffset, AnchorMovementType movement) { var offset = oldOffset; foreach (var e in GetChangesTo(other)) { offset = e.GetNewOffset(offset, movement); } return offset; }