FLOAT GetTextWidth ( BSTR text ) |
This method returns the width (in pixels) of the specified ANSI text string for the current font and page properties. CallĀ UseFont to set the desired font before calling this method.
See theĀ PageHeight property for example.