Click or drag to resize

GH_FormatFormatString Method

Replaces the format items in a string with the string representations of corresponding objects in a specified array.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static string FormatString(
	string text,
	params Object[] args
)

Parameters

text
Type: SystemString
A composite format string.
args
Type: SystemObject
An object array that contains zero or more objects to format.

Return Value

Type: String
A copy of format in which the format items have been replaced by the string representation of the corresponding objects in args.
Remarks
Formatting is done using invariant-culture formatting information.
See Also