ComponentOne VSView 8.0
TextWidth Property (VSDraw)

Returns the width of a string in scale units.

Syntax

val# = [form!]VSDraw.TextWidth(Text As String)

Remarks

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.

Data Type

Double

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback