determine text component witdth

Stimulsoft Reports.NET discussion
Post Reply
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

determine text component witdth

Post by dmasterplan »

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!
ulli82
Posts: 47
Joined: Tue Jul 06, 2021 6:46 am

Re: determine text component witdth

Post by ulli82 »

System.Windows.Forms.TextRenderer.MeasureText
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: determine text component witdth

Post by dmasterplan »

Okay. I'll do it now.
AND Thanks a lot for answering my question.
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: determine text component witdth

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply