[]
Represents a contiguous area of content objects in a document. Unlike Range, PersistentRange is kept alive and can be used even if the content used to create this range has been deleted.
Important: to avoid performance degradation, you should dispose PersistentRange when it is no longer needed.
public class PersistentRange : Range, IContentList<ContentObject>, IReadOnlyList<ContentObject>, IReadOnlyCollection<ContentObject>, IEnumerable<ContentObject>, IEnumerable, IDisposable
Releases allocated range resources. Should be called once this range is no longer needed.
public void Dispose()
Range destructor, disposes allocated data.
protected ~PersistentRange()
It's good practice to don't wait destructor, instead execute Dispose() method to dispose resources.