StringFunctions.FindWidestValueInField

Finds the widest value in the specified column based on the specified font and size.

public static TextSize FindWidestValueInField(DataTable table,
	string fieldName,
	Font font,
	GraphicsUnit units,
	Func<Object,String> formatter)

Return Value

A TextSize object containing the widest value, its size in the specified units, and its length in characters.

Parameters

table
The DataTable containing the data.

fieldName
The name of the column to check.

font
The font to use.

units
The units to use.

formatter
A function to format the values into strings.

Overloads:


See also:

Class StringFunctions