## Graphics.MeasureCharacterRanges method

Gets an array of Region objects, each of which bounds a range of character positions within the specified string.

```csharp
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](../../region/)
* class [Font](../../font/)
* struct [RectangleF](../../rectanglef/)
* class [StringFormat](../../stringformat/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)


