After deleting a custom annotation using the DeleteAnnotationRange method when there is a text immediately in front of the annotation start:
and then trying to delete the last character in this former annotation range an exception is thrown (Exception: System.InvalidOperationException: 'inline does not belong to this document.')