Skip to main content

CanvasOperationMeasureText

Type

statement

Summary

Measure text when drawn to a canvas.

Syntax

measure <mText> on <mCanvas>

Description

Measure text when drawn to a canvas.

Parameters

NameTypeDescription

mText

An expression which evaluates to a string.

mCanvas

An expression which evaluates to a canvas.

Examples

// Measure text drawn on the canvas
variable tBounds as Rectangle
measure "Sample text" on this canvas
put the result into tBounds
Thank you for your feedback!

Was this page helpful?