[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.PersistentRange

Class PersistentRange

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

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
Inheritance
object
PersistentRange
Implements
System.Collections.Generic.IReadOnlyList<T><ContentObject>
System.Collections.Generic.IReadOnlyCollection<T><ContentObject>
System.Collections.Generic.IEnumerable<T><ContentObject>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Methods

Dispose()

Releases allocated range resources. Should be called once this range is no longer needed.

public void Dispose()

~PersistentRange()

Range destructor, disposes allocated data.

protected ~PersistentRange()

Remarks

It's good practice to don't wait destructor, instead execute Dispose() method to dispose resources.