Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.
Namespace: MindFusion.Drawing
Assembly: MindFusion.Common
C# Copy Code |
---|
Size MeasureString ( |
Visual Basic Copy Code |
---|
Function MeasureString( _ |
The string to measure.
A Font object that defines the text format of the string.
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.