ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TShellControlHelper.GetTextExtent

Returns the width and height in pixels for the given text.

Syntax
Pascal
class function GetTextExtent(const pText: string; pControl: TWinControl): TSize;
Parameters 
Description 
const pText: string 
The text for which the extent should be calculated. 
pControl: TWinControl 
The control in which the text should be displayed. 

TSize: The size of the text in pixels if displayed in the control; 0 if the operation failed.