phil.netring
Joined: 09 Sep 2008 Posts: 3
|
Posted: Wed Sep 10, 2008 3:43 pm Post subject: Question: Text Height |
|
|
Hello,
I'm using the XTextFormatter to draw text onto my PDF, but I need to measure the height of my resulting text when it is on multiple lines.
On a single line I'm fine, I have estimated 150% of the font size. But when adding a Paragraph(s) of text I can not be sure how many lines come out as a result.
Is there any way to find this out?
Code: | XTextFormatter.DrawString("Paragraph of text", font, brush , rectangle, XStringFormats.TopLeft); |
|
|