![]() |
Need to download code? |
|
![]() |
csharptoday_discuss thread: GDI+ MeasureString Method
Hello, I am trying to measure the string width using measureString Method of graphics class. All is going fine with the exception that it does not measure "Spaces" (Space Bar)more than once if they are at the end. e.g. string str=" "; g.measurestring(str,font).width; // gives 7 string str1=" "; g.measurestring(str1,font).width; // also gives 7 Please help me in this regard urgently. Regards, faraz
![]() |
![]() |