JCL Help:TJclBitmap32.TextWidth

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the width, in pixels, of a string rendered in the current font.


Pascal

 public function TextWidth(const Text: string): Integer;


Description

Use TextWidth to determine the length a string will occupy in the image. TextWidth indicates whether a given string will fit in the available space. Other graphical elements in the image such as lines, or additional strings can be positioned to accommodate the width of the text.
TextWidth returns the same value as TextExtent(Text).cx.


See Also

Font RenderText TextExtent TextHeight TextOut


About

Donator

Alex Denissov


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page