ComponentOne VSView 8.0
CalcText Property

Calculates the size of a string, in twips, and returns results in TextWid, TextHei, X1, Y1, X2, and Y1.

Syntax

[form!]VSPrinter.CalcText = value As String

Remarks

You can use this property to determine whether some text will fit on the current page. The text is measured from the current cursor position (CurrentX, CurrentY) and the measurement takes into account wrapping, indenting, and line spacing.

If you only need the width and height of the text, and not the rectangle on the page, you may use the TextWidth and TextHeight properties instead.

To draw shaded paragraphs, see also the TextBox method.

Data Type

String

 

 


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

Product Support Forum  |  Documentation Feedback