Graphics.TextWidth equivalent for WebGraphics?

Is there any way to get the width of a string when using a WebCanvas graphics object?

I am drawing text in columns and want to truncate the string if it is wider than the column.

1 Like

You could use a scratch Picture for the measurements. Picture has all the properties of the regular Graphics object.

Perfect! I will give that a shot. Thanks!

1 Like