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.

Behavior text in rectangles

Thread ID:

Created:

Updated:

Platform:

Replies:

52373 Nov 27,2006 04:31 PM Nov 28,2006 12:51 PM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Tester
Asked On November 27, 2006 04:31 PM

Hi,
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 12:51 PM

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.

TextInRectangle.zip


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

Regards,
Prakash.

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.

;