Hello,
How can I determine the text component width depending on the content when ran/previewed?
Sample:
Run/Preview: ThisTwentyTextsAndASampleWidthOfFivePointSix
So, when the width is 5.6, the text won't fit and will be cut. I want it to wrap and assign the adjusted width to a variable?
Is this possible?
Please, I really need to resolve this.
Great Thanks!
determine text component witdth
- dmasterplan
- Posts: 143
- Joined: Thu Mar 17, 2022 4:04 am
- Location: Philippines
Re: determine text component witdth
System.Windows.Forms.TextRenderer.MeasureText
- dmasterplan
- Posts: 143
- Joined: Thu Mar 17, 2022 4:04 am
- Location: Philippines
Re: determine text component witdth
Okay. I'll do it now.
AND Thanks a lot for answering my question.
AND Thanks a lot for answering my question.
-
- Posts: 991
- Joined: Tue Sep 07, 2021 10:11 am
Re: determine text component witdth
Hello,
You are welcome!
You are welcome!