Hi Andreas,
Thank you for using Syncfusion products.
We have prepared a sample for your requirement. Could you please have a look at the sample in the below link and let us know if this helps.
Sample:
http://files.syncfusion.com/support/DocIO.Windows/F91239/TextBoxWidth.zipPlease let us know if you have any questions.
Regards,
Vijay