p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

csharptoday_discuss thread: GDI+ MeasureString Method


Message #1 by "Faraz Qureshi" <farazq@m...> on Wed, 29 May 2002 09:15:23
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

  Return to Index