We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Determining the height of Word wrapped text

I need to wrap text that could vary in length by quite a bit. Is there any way to predetermine how much vertical space the text will take up when wrapped, based on the font and font size?


1 Reply

PH Praveenkumar H Syncfusion Team August 19, 2013 04:57 AM UTC

Hi Bert,

Thank you for using Syncfusion products,

Yes , we can get the vertical space taken by the wrapped text using following code snippet.

 PdfLayoutResult result= element.Draw(page,rect);

The sample is attached for your reference,

Please let us know if you have any concern.

With Regards,


Live Chat Icon For mobile
Up arrow icon