RangeCollection
Contents
[
Hide
]RangeCollection class
Encapsulates a collection of Range objects.
class RangeCollection;
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| index | number | The 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:
| Parameter | Type | Description |
|---|---|---|
| range | Range | Range 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:
| Parameter | Type | Description |
|---|---|---|
| range | Range | the range to be added |
Returns
index of the added range in this collection