DrawTextHeight method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax float DrawTextHeight (BSTR pszText);

Overview:  Refer to Drawing Three-Dimensional Shapes and Text.

Remarks

Returns the height of the specified text string, using the current values of the Font property.

The scale is relative to the Main Control's client area. The unit of measure is determined by the ScaleMode property. You can use this method to position the text relative to another drawing object, such as a line or rectangle.

See Also

Elements:  DrawText method

Topics:  Working with the Control: Client Area Usage
Raster Images: Drawing on a Bitmap