RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.StringWidth Method

Returns the width of a string, using the list view's current font.

Pascal
function StringWidth(S: string): Integer;
C++
__fastcall int StringWidth(AnsiString S);

Call StringWidth to determine the space, in pixels, required to display a string using the list view's current font. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!