GH_FontServerMeasureString Method (String, Font, Single) |
Measure the size of a string
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static Size MeasureString(
string text,
Font font,
float maxwidth
)
Public Shared Function MeasureString (
text As String,
font As Font,
maxwidth As Single
) As Size
Parameters
- text
- Type: SystemString
The string to measure - font
- Type: System.DrawingFont
The font to measure with - maxwidth
- Type: SystemSingle
The maximum width (in pixels) for the layout
Return Value
Type:
SizeSee Also