Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomListView.StringWidth(string) Method

Returns the width of the string in pixels.

#Declaration

Delphi
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