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

Width of the text in pixels

Hello Syncfusion,

I need to determine the number of cells required to fit a string. Is there a way to determine, given the string get me the number of cells required to fit the text OR get me the width of the text in pixels?

I would appreciate your help on this!

Thanks!


1 Reply

SR Sridhar Syncfusion Team March 17, 2011 12:24 PM UTC

Hi Ram,

Thank you for using Sycnfusion products.

Here with i have attached the sample file for your reference.

1.Finding the width of the cell
2.Finding the cell width
3.Merging the corresponding cells to place the given string.

Please try the sample at your side and let us know if this helps you.

Please let us know if you have require any further clarifications.

Thanks,
Sridhar.S



Measure String_d841047e.zip

Loader.
Live Chat Icon For mobile
Up arrow icon