Calculates the width of a text string as it would be printed in the current font.
Visual Basic |
---|
Public Function TextWidth( _ ByVal textStr As String _ ) As Single |
- textStr
- The string you want to know the width of.
Not available at design time.
Calculates and returns the width expressed in terms of the ScaleMode property setting.