M
Marcos Cruz Arjona
Hi,
In order to draw a formatted text inside a rectangle on a custom
control, I use Graphics.DrawString(string, Font, Brush, RectangleF) method.
However, when the text is too large for the specified rectangle, the method
word wraps the text, instead of just clipping it on a single line.
Therefore, do I have to use DrawText unmanaged function or is there a
workaround?
Best regards,
M a r c o s
In order to draw a formatted text inside a rectangle on a custom
control, I use Graphics.DrawString(string, Font, Brush, RectangleF) method.
However, when the text is too large for the specified rectangle, the method
word wraps the text, instead of just clipping it on a single line.
Therefore, do I have to use DrawText unmanaged function or is there a
workaround?
Best regards,
M a r c o s