|
|
| GetTextWidth | ||
| Width = GetTextWidth(String$) | ||
| Parameters: String$ = The String you want to return the width of |
||
| Returns: Width = The width in pixels of this string of text |
||
The GetTextWidth function returns the width (in pixels) of a string of text. FACTS: * GetTextWidth uses the current font to calculate the pixel width from. Mini Tutorial: This example displays the pixel width & height of the text message "hello World" in both the default font, and the Arial font.
This example would output.
|
| Related Info: | GetCurrentFont | GetFontChrWidth | GetFontWidth | GetTextHeight | SetFont : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |