Determine width of a canvas string

junglejet

Active Member
Licensed User
Longtime User
I need to position a string on a canvas.

The end of the string needs to be positioned relative to a mark on the screen.
My conservative thinking would be that I need to determine the width of the string and then draw the string to the left of the mark at x position "mark-width".

So I would need to determine the width of the string, a function I cannot find.

Or is there any other method that makes things easier?
 

hdtvirl

Active Member
Licensed User
Longtime User
Canvas.MeasureStringWidth(.....)

Look it up in the beginner guide.

I hope this helps.

Regards

BOB
 
Upvote 0
Top