## ProtectedRangeCollection::Add(const U16String\&, int32_t, int32_t, int32_t, int32_t) method


Adds a [ProtectedRange](../../protectedrange/) item to the collection.

```cpp
int32_t Aspose::Cells::ProtectedRangeCollection::Add(const U16String &name, int32_t startRow, int32_t startColumn, int32_t endRow, int32_t endColumn)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | [Range](../../range/) title. This is used as a descriptor, not as a named range definition. |
| startRow | int32_t | Start row index of the range. |
| startColumn | int32_t | Start column index of the range. |
| endRow | int32_t | End row index of the range. |
| endColumn | int32_t | End column index of the range. |

## ReturnValue

object index.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [ProtectedRangeCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## ProtectedRangeCollection::Add(const char16_t*, int32_t, int32_t, int32_t, int32_t) method


Adds a [ProtectedRange](../../protectedrange/) item to the collection.

```cpp
int32_t Aspose::Cells::ProtectedRangeCollection::Add(const char16_t *name, int32_t startRow, int32_t startColumn, int32_t endRow, int32_t endColumn)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | [Range](../../range/) title. This is used as a descriptor, not as a named range definition. |
| startRow | int32_t | Start row index of the range. |
| startColumn | int32_t | Start column index of the range. |
| endRow | int32_t | End row index of the range. |
| endColumn | int32_t | End column index of the range. |

## ReturnValue

object index.

## See Also

* Class [Vector](../../vector/)
* Class [ProtectedRangeCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
