0

In my app I write some text to word document, I have a textbox in the app that I want to limit the number of characters in it according to the character widths.

In the begining I limited the number of characters, but the I figured that not all characters have the same width, I mean, if the user enters fffff, it's not the same width as wwwww

I need something like:

if(someString.Width>15.5)
  //do stuff
kaspermoerch
  • 16,127
  • 4
  • 44
  • 67
BugsFixer
  • 377
  • 2
  • 15

0 Answers0