Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.
Namespace: MindFusion.Drawing
Assembly: MindFusion.Charting
C# Copy Code |
---|
Size MeasureString ( |
Visual Basic Copy Code |
---|
Function MeasureString( _ |
The string to measure.
A Microsoft.Maui.Font that specifies the font attributes.
The maximum width of the string.
A StringFormat object that represents formatting information, such as line spacing, for the string.
A Size structure that represents the size, in pixels, of the string specified in the text parameter as drawn with the font parameter and the stringFormat parameter.