Graphics.MeasureCharacterRanges
Graphics.MeasureCharacterRanges method
Gets an array of Region objects, each of which bounds a range of character positions within the specified string.
public Region[] MeasureCharacterRanges(string text, Font font, RectangleF layoutRect,
StringFormat stringFormat)
Parameter | Type | Description |
---|---|---|
text | String | String to measure. |
font | Font | Font that defines the text format of the string. |
layoutRect | RectangleF | RectangleF structure that specifies the layout rectangle for the string. |
stringFormat | StringFormat | StringFormat that represents formatting information, such as line spacing, for the string. |
Return Value
This method returns an array of Region objects, each of which bounds a range of character positions within the specified string.
See Also
- class Region
- class Font
- struct RectangleF
- class StringFormat
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common