## RangeCollection class


Encapsulates a collection of [Range](../range/) objects.

```cpp
class RangeCollection
```

## Methods

| Method | Description |
| --- | --- |
| [Add(const Range\& range)](./add/) |  **(Deprecated)** Adds a [Range](../range/) item to the collection. |
| [AddRange(const Range\& range)](./addrange/) | Adds a [Range](../range/) item to the collection. |
| [begin()](./begin/) | Returns an iterator to the beginning of the [RangeCollection](./). |
| [end()](./end/) | Returns an iterator to the end of the [RangeCollection](./). |
| [Get(int32_t index)](./get/) | Gets the [Range](../range/) element at the specified index. |
| [GetCount()](./getcount/) | Gets the number of elements contained in the instance. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const RangeCollection\& src)](./operator_asm/) | operator= |
| [RangeCollection(RangeCollection_Impl* impl)](./rangecollection/) | Constructs from an implementation object. |
| [RangeCollection(const RangeCollection\& src)](./rangecollection/) | Copy constructor. |
| [~RangeCollection()](./~rangecollection/) | Destructor. |
## Fields

| Field | Description |
| --- | --- |
| [_impl](./_impl/) | The implementation object. |
## See Also

* Namespace [Aspose::Cells](../)
* Library [Aspose.Cells for C++](../../)
