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.