Grasshopper API
GH_FontServerMeasureString Method (String, Font) |
Measure the size of a string
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static Size MeasureString( string text, Font font )
Public Shared Function MeasureString ( text As String, font As Font ) As Size
Parameters
- text
- Type: SystemString
The string to measure - font
- Type: System.DrawingFont
The font to measure with
Return Value
Type: Size