Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.
Namespace: MindFusion.Drawing
Assembly: MindFusion.Scheduling
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 device-independent pixels, of the string specified in the text parameter as drawn with the font parameter and the stringFormat parameter.