Results 1 to 2 of 2

Thread: Getting the text width

  1. #1
    Tygur
    Guest

    Getting the text width

    How can I find out how wide a particular string of text is when it is shown using a particular font? I already figured out how to get the height, but the width seems much more elusive.

    I used to be able to use TextWidth in VB6.

  2. #2
    Tygur
    Guest
    Well, I found what I was looking for. I should've looked a little longer before posting this question.

    For anybody who's wondering, you can use the Graphics.MeasureString Method to get both the height and width.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width