Document Solutions for Word
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / RangeBase Class / GetPersistentRange Method / GetPersistentRange(ContentObject,ContentObject) Method
The first content object to include in the range.
The last content object to include in the range.

In This Topic
    GetPersistentRange(ContentObject,ContentObject) Method
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Overloads Function GetPersistentRange( _
       ByVal first As ContentObject, _
       ByVal last As ContentObject _
    ) As PersistentRange
    public PersistentRange GetPersistentRange( 
       ContentObject first,
       ContentObject last
    )

    Parameters

    first
    The first content object to include in the range.
    last
    The last content object to include in the range.

    Return Value

    The newly created instance of PersistentRange.
    See Also