Search
GdiGraphics.MeasureCharacterRanges Method
See Also
 





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

Namespace: MindFusion.Drawing
Package: MindFusion.Common

 Syntax

C#  Copy Code

public virtual RectangleF[] MeasureCharacterRanges (
    string text,
    Font font,
    RectangleF layoutRect,
    StringFormat stringFormat
)

Visual Basic  Copy Code

Public Overridable Function MeasureCharacterRanges( _
    text As String, _
    font As Font, _
    layoutRect As RectangleF, _
    stringFormat As StringFormat _
) As RectangleF()

 Parameters

text
The string to measure.
font
A .NET Font object that defines the text format of the string.
layoutRect
A .NET RectangleF structure that specifies the layout rectangle for the string.
stringFormat
A .NET StringFormat object that represents formatting information, such as line spacing, for the string.

 Return Value

This method returns an array of .NET Region objects, each of which bounds a range of character positions within the specified string.

 See Also