Pixel Width of a string
C#
2
Posts
2
Posters
0
Views
1
Watching
-
hello, does anybody know how to determine the pixel width of a string if given the font and font size? i would like to be able to do this using c#, but i have no idea where to start. thanks!!! RC
You can probably look here -> [TextRenderer.MeasureText] It's new to the .NET 2.0 framework according to MSDN website. There are examples in VB and C# about 3/4 of the way down the page. Hope this gets you off in the right direction. Mike Poz