Darren
Darren

Reputation: 961

How do I get the text size of a string on a WPF canvas?

I'm trying to find the amount of space/width that a string would take when its drawn on a WPF canvas?

Upvotes: 2

Views: 1677

Answers (1)

Darren
Darren

Reputation: 961

I may have found an answer to my own question. The FormattedText class seems to have what I'm after.

Upvotes: 3

Related Questions