VectorParagraphHeight()

Syntax

Result.d = VectorParagraphHeight(Text$, Width.d, Height.d)
Description
Returns the height needed to draw the given paragraph of text using the DrawVectorParagraph() function.

Parameters

Text$ The paragraph of text to measure (can be multiple lines).
Width.d The width to use for the paragraph.
Height.d The maximum height available for the paragraph.

Return value

The actual height needed to draw the paragraph of text.

Remarks

If the text does not fit within the defined bounding box, the result will be equal to the value of "Height.d". This indicates that calling DrawVectorParagraph() would cut off parts of the text.

See Also

DrawVectorParagraph(), DrawVectorText(), VectorFont(), VectorTextWidth(), VectorTextHeight()

Supported OS

All

<- VectorOutputWidth() - VectorDrawing Index - VectorResolutionX() ->