|
| Bypass Graphics.MeasureString limitations |
|
|
| Details |
|
Related Types |
| Site: |
The Code Project |
| Original URL: |
http://www.codeproject.com/csharp/measurestring.asp |
|
Summary:
Graphics.MeasureString can be used to compute the height and width of a text string. Often, however, the dimensions returned do not match the size of what gets drawn on screen when calling Graphics.DrawString. The code I present here can be inserted into any class which needs to compute the real width of a string (shown by the yellow background above). |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|