## ProtectedRangeCollection class


Encapsulates a collection of [ProtectedRange](../protectedrange/) objects.

```cpp
class ProtectedRangeCollection
```

## Methods

| Method | Description |
| --- | --- |
| [Add(const U16String\& name, int32_t startRow, int32_t startColumn, int32_t endRow, int32_t endColumn)](./add/) | Adds a [ProtectedRange](../protectedrange/) item to the collection. |
| [Add(const char16_t* name, int32_t startRow, int32_t startColumn, int32_t endRow, int32_t endColumn)](./add/) | Adds a [ProtectedRange](../protectedrange/) item to the collection. |
| [begin()](./begin/) | Returns an iterator to the beginning of the [ProtectedRangeCollection](./). |
| [end()](./end/) | Returns an iterator to the end of the [ProtectedRangeCollection](./). |
| [Get(int32_t index)](./get/) | Gets the [ProtectedRange](../protectedrange/) 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 ProtectedRangeCollection\& src)](./operator_asm/) | operator= |
| [ProtectedRangeCollection(ProtectedRangeCollection_Impl* impl)](./protectedrangecollection/) | Constructs from an implementation object. |
| [ProtectedRangeCollection(const ProtectedRangeCollection\& src)](./protectedrangecollection/) | Copy constructor. |
| [~ProtectedRangeCollection()](./~protectedrangecollection/) | Destructor. |
## Fields

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

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