## Range::GetOffsetAndLength method


Computes the zero-based start offset and length for the specified collection length.

```cpp
System::ValueTuple<int32_t, int32_t> System::Range::GetOffsetAndLength(int32_t length) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| length | int32_t | The length of the collection. |

### ReturnValue

The tuple containing zero-based index from the start of the collection and the number of elements selected by the range.

## See Also

* Class [ValueTuple](../../valuetuple/)
* Class [Range](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
