---
title: "System::Buffers::ReadOnlySequence::get_Length method"
url: "https://reference.aspose.com/pdf/cpp/system.buffers/readonlysequence/get_length/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Buffers::ReadOnlySequence::get_Length method. Gets the number of elements in the sequence in C++."
---

## ReadOnlySequence::get_Length method


Gets the number of elements in the sequence.

```cpp
int64_t System::Buffers::ReadOnlySequence<T>::get_Length() const
```


### ReturnValue

The total element count.

## See Also

* Class [ReadOnlySequence](../)
* Namespace [System::Buffers](../../)
* Library [Aspose.PDF for C++](../../../)
