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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Behavior text in rectangles

Thread ID:





52373 Nov 27,2006 09:31 PM UTC Nov 28,2006 05:51 PM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On November 27, 2006 09:31 PM UTC

Could you please explain a little bit about the behavior of the text in rectangles? because I have noted that sometimes it doesn't appear, other times it accommodates itself in the rectangle, and in other situations it cuts the word.

Thanks in advance.

Administrator [Syncfusion]
Replied On November 28, 2006 05:51 PM UTC

Hi Erick,

It is possible to display the text with in rectangle. But all we need to do is that measure the size of the contents for which we are using MeasureString property. It is used for calculate the size of the string that is to be displayed.

If we don’t use the MeasureString property then we will not be able to draw the text within the rectangle.

Could you please refer the following sample. It will fulfill your needs.


Please take a look at this and let me if the problem still exists.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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