Skip to main content

TcxCustomListView.StringWidth(string) Method

Returns the width of the string in pixels.

Declaration

function StringWidth(S: string): Integer;

Parameters

Name Type
S string

Returns

Type
Integer

Remarks

Call the StringWidth method to calculate the width of the specified string in pixels as it is drawn with the current font, selected in the list view control. You may use this method to determine whether the string will fit the client area or not without scrolling. The string to measure is specified by the S parameter.

See Also