CanvasOperationMeasureText |
Type | statement |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | measure <mText> on <mCanvas>
|
Associations | com.livecode.canvas |
Summary | Measure text when drawn to a canvas.
|
Parameters | Name | Type | Description |
---|
mText | | An expression which evaluates to a string.
|
mCanvas | | An expression which evaluates to a canvas.
|
|
Example |
variable tBounds as Rectangle
measure "Sample text" on this canvas
put the result into tBounds
|
Values | Name | Type | Description |
---|
return | | The bounding box of mText when drawn at point 0,0 with the current font of mCanvas. Returns the bounds as a rectangle in the result.
|
|
Description | Measure text when drawn to a canvas.
|
Tags | canvas |