GH_FontServer.StringWidth Method (IEnumerable(String), Font)

GH_FontServerStringWidth Method (IEnumerableString, Font)

Measure the maximum width of a collection of strings

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static int StringWidth(
	IEnumerable<string> text,
	Font font
)
Public Shared Function StringWidth ( 
	text As IEnumerable(Of String),
	font As Font
) As Integer

Parameters

text
Type: System.Collections.GenericIEnumerableString
The strings to measure
font
Type: System.DrawingFont
The font to measure with

Return Value

Type: Int32
See Also