By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,871 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,871 IT Pros & Developers. It's quick & easy.

the height of a string

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Check out Graphics.MeasureString Method (String, Font)

Nov 21 '05 #2

P: n/a
it worked great, thanks!!

"Rulin Hong" <Ru*******@discussions.microsoft.com> a écrit dans le message
de news:31**********************************@microsof t.com...
Check out Graphics.MeasureString Method (String, Font)

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.