Control Reference > VSPrinter Control > VSPrinter Properties > TextWidth Property (VSPrinter) |
Returns the width of a string, in twips.
val# = [form!]VSPrinter.TextWidth(Text As String)
This property does not take into account word wrapping or the settings of the SpaceBefore and SpaceAfter properties. To measure formatted text, use the CalcParagraph or CalcText properties instead.
Double