## ReadOnlySpan::to_ReadOnlySpan method


Converts an array to a [ReadOnlySpan](../).

```cpp
static ThisType System::ReadOnlySpan<T>::to_ReadOnlySpan(const typename BaseType::ArrayPtrT &array)
```


| Parameter | Type | Description |
| --- | --- | --- |
| array | const typename BaseType::ArrayPtrT\& | The array to convert. |

### ReturnValue

A read only span representing the array.

## See Also

* Class [ReadOnlySpan](../)
* Class [ReadOnlySpan](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
