## TextInfo::ReadOnly method


获取只读的文化版本。

```cpp
static TextInfoPtr System::Globalization::TextInfo::ReadOnly(const TextInfoPtr &text_info)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| text_info | const TextInfoPtr\& | [TextInfo](../) 用于包装为只读。 |

### ReturnValue

如果 **text_info** 为只读，则返回相同对象，否则创建只读副本。

## 另见

* Typedef [TextInfoPtr](../../textinfoptr/)
* Class [TextInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
