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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Determining the height of Word wrapped text

Thread ID:

Created:

Updated:

Platform:

Replies:

110579 Aug 13,2013 02:54 PM UTC Aug 19,2013 04:57 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Bert Sirkin
Asked On August 13, 2013 02:54 PM UTC

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?

bert

Praveenkumar H [Syncfusion]
Replied On 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,
Praveen


Word_wrapping_23a7dde4.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;