## ReadOnlySpan::to_ReadOnlySpan method


将数组转换为 [ReadOnlySpan](../)。

```cpp
static ThisType System::ReadOnlySpan<T>::to_ReadOnlySpan(const typename BaseType::ArrayPtrT &array)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 数组 | const typename BaseType::ArrayPtrT\& | 要转换的数组。 |

### ReturnValue

表示该数组的只读 span。

## 另见

* Class [ReadOnlySpan](../)
* Class [ReadOnlySpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
