PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How tall is my word-wrapped text?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2748
Page 1 of 1

Author:  fullingdale [ Thu Feb 27, 2014 10:41 am ]
Post subject:  How tall is my word-wrapped text?

If I have some text (of varying length) which is word-wrapped, is there any means by which I can find out how much vertical space has been used?

So that I can start my next paragraph in the correct place, rather than 'guessing' where to put it.

Author:  Thomas Hoevel [ Thu Feb 27, 2014 10:51 am ]
Post subject:  Re: How tall is my word-wrapped text?

I presume the question is about PDFsharp.

How do you wrap the text?

If you use XTextFormatter: copy the source code to your project, add an out parameter that returns the height, that's all.

Author:  fullingdale [ Thu Feb 27, 2014 2:25 pm ]
Post subject:  Re: How tall is my word-wrapped text?

Perfect, thank you!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/