[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.RangeBase.GetPersistentRange

GetPersistentRange Method

GetPersistentRange(ContentObject, ContentObject)

Creates and returns an instance of PersistentRange with bounds on the specified objects.

You should dispose the PersistentRange returned by this method when it is no longer needed. Failing to do so may lead to degraded performance.

Declaration
public PersistentRange GetPersistentRange(ContentObject first, ContentObject last)
Public Function GetPersistentRange(first As ContentObject, last As ContentObject) As PersistentRange
Parameters
Type Name Description
ContentObject first

The first content object to include in the range.

ContentObject last

The last content object to include in the range.

Returns
Type Description
PersistentRange

The newly created instance of PersistentRange.

GetPersistentRange(Marker, Marker)

Creates and returns an instance of PersistentRange with bounds on the specified markers.

You should dispose the PersistentRange returned by this method when it is no longer needed. Failing to do so may lead to degraded performance.

Declaration
public PersistentRange GetPersistentRange(Marker start, Marker end)
Public Function GetPersistentRange(start As Marker, [end] As Marker) As PersistentRange
Parameters
Type Name Description
Marker start

The marker where to start the range.

Marker end

The marker where to end the range.

Returns
Type Description
PersistentRange

The newly created instance of PersistentRange.