System::Drawing::Graphics::MeasureCharacterRanges 方法
Graphics::MeasureCharacterRanges method
返回一个区域数组,每个区域限定指定字符串中的字符位置。
ArrayPtr<SharedPtr<Region>> System::Drawing::Graphics::MeasureCharacterRanges(const System::String &text, const SharedPtr<Font> &font, RectangleF layoutRect, const SharedPtr<StringFormat> &stringFormat)
| 参数 | 类型 | 描述 |
|---|---|---|
| 文本 | const System::String& | 要测量的字符串 |
| 字体 | const SharedPtr<Font>& | 测量字符串时使用的字体 |
| layoutRect | RectangleF | 测量字符串时使用的布局矩形 |
| stringFormat | const SharedPtr<StringFormat>& | 字符串格式,包含要测量的字符范围 |
另见
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Region
- Class String
- Class Font
- Class RectangleF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Font for C++