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