Declaration ​
pascal
function TextExtent(const Text: string): TSize;Parameters ​
| Parameter | Type | Description |
|---|---|---|
Text | string | Text string to measure. |
Returns ​
| Type | Description |
|---|---|
TSize | A TSize record containing calculated width (cX) and height (cY) in pixels. |
Description ​
TextExtent queries backend text support (ITextSupport) to determine the pixel dimensions required to render Text using the bitmap's current Font.