Z zhimin Apr 12, 2004 #1 I had get a font and a string, how to get the width(in pels) of the string if I drawing it. Thanks!
B Bob Powell [MVP] Apr 12, 2004 #2 Graphics.MeasureString -- Bob Powell [MVP] Visual C#, System.Drawing All you ever wanted to know about ListView custom drawing is in Well Formed. http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Read my Blog at http://bobpowelldotnet.blogspot.com
Graphics.MeasureString -- Bob Powell [MVP] Visual C#, System.Drawing All you ever wanted to know about ListView custom drawing is in Well Formed. http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Read my Blog at http://bobpowelldotnet.blogspot.com
H Herfried K. Wagner [MVP] Apr 12, 2004 #3 * "zhimin said: I had get a font and a string, how to get the width(in pels) of the string if I drawing it. Click to expand... 'Graphics.MeasureString': <URL:http://msdn.microsoft.com/library/e...temdrawinggraphicsclassmeasurestringtopic.asp>
* "zhimin said: I had get a font and a string, how to get the width(in pels) of the string if I drawing it. Click to expand... 'Graphics.MeasureString': <URL:http://msdn.microsoft.com/library/e...temdrawinggraphicsclassmeasurestringtopic.asp>