RangeCollection

RangeCollection class

Encapsulates a collection of Range objects.

class RangeCollection;

Methods

MethodDescription
get(number)Gets the Range element at the specified index.
add(Range)Adds a Range item to the collection.
addRange(Range)Adds a Range item to the collection.

get(number)

Gets the Range element at the specified index.

get(index: number) : Range;

Parameters:

ParameterTypeDescription
indexnumberThe zero based index of the element.

Returns

The element at the specified index.

add(Range)

Adds a Range item to the collection.

add(range: Range) : number;

Parameters:

ParameterTypeDescription
rangeRangeRange object

Remarks

NOTE: This member is now obsolete. Instead, please use AddRange() method. This method will be removed 6 months later since December 2025. Aspose apologizes for any inconvenience you may have experienced.

addRange(Range)

Adds a Range item to the collection.

addRange(range: Range) : number;

Parameters:

ParameterTypeDescription
rangeRangethe range to be added

Returns

index of the added range in this collection