ComponentOne VSView 8.0
KeepTextAspect Property

Returns or sets whether text should keep its aspect ratio when the drawing is resized.

Syntax

[form!]VSDraw.KeepTextAspect[ = {True | False} ]

Remarks

When KeepTextAspect is set to True, text drawn using the Text property will retain its aspect ratio when the control is resized or rescaled. This is done by adjusting the font height to the new scale, and computing the width so that the text appearance does not change.

When KeepTextAspect is set to False, text drawn using the Text property will be resized or rescaled with the control. Both the height and the width of the font are adjusted to reflect the new scaling, so the aspect of the text may change (the font may look "fat" or "skinny").

Note that this is not a global setting that applies to the entire drawing. It is like a font attribute, that applies individually to each string drawn on the control.

For example, the picture below shows VSDraw control with a drawing containing two strings. One was drawn with KeepTextAspect set to True, the other to False. The picture shows the drawing before and after the control was resized:

Data Type

Boolean

Default Value

True

 

 


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

Product Support Forum  |  Documentation Feedback