Control Reference > VSDraw Control > VSDraw Properties > TextWidth Property (VSDraw) |
Returns the width of a string in scale units.
val# = [form!]VSDraw.TextWidth(Text As String)
The value returned is the width of the string measured using the current font and scaling.
If the control is resized, or the scaling changes, the width of the string measured in scale units may change, depending on the setting of the KeepTextAspect property. If KeepTextAspect is set to True (the default), then the text width will change in order to keep the aspect ratio constant. If KeepTextAspect is set to False, then the width of the string will remain constant.
Double