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.

Determining the height of Word wrapped text

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 12:57 AM

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.

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.

;