Groups | Blog | Home
all groups > dotnet faqs > december 2004 >

dotnet faqs : the height of a string


Rulin Hong
12/23/2004 8:29:01 AM
Check out Graphics.MeasureString Method (String, Font)
ThunderMusic
12/23/2004 11:20:52 AM
Hi,
is there a way to know the height of a string printed in a rectangle? I
mean. I would like to create a rectangle high enough to contain all the
string but I don't want to increase the width so I have to determine the
height the string will have when printed in order to create a high enough
rectangle.

Is there an easy way to know the height of the rectangle I must create in
order to contain all my string?

thanks

ThunderMusic


ThunderMusic
12/23/2004 12:02:57 PM
it worked great, thanks!!

"Rulin Hong" <RulinHong@discussions.microsoft.com> a écrit dans le message
de news:31036F97-7601-433C-9E8D-D75C45FCC5EE@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button