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,
	string format)

Return Value

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


table The DataTable containing the data.

fieldName The name of the column to check.

font The font to use.

units The units to use.

format The format to use for the values.


See also:

Class StringFunctions

© Stonefield Software Inc., 2019 • Updated: 02/12/16
Comment or report problem with topic