System::Range::GetOffsetAndLength method

Range::GetOffsetAndLength method

Computes the zero-based start offset and length for the specified collection length.

System::ValueTuple<int32_t, int32_t> System::Range::GetOffsetAndLength(int32_t length) const
ParameterTypeDescription
lengthint32_tThe 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