Hi,
I have an UltraLabel control in WinForms that I've set to do TextTrimming (EllipsisCharacter):
appearance2.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
However, I don't know how to determine programattically when the text trimming is occurring. I would like to know this so that I can put a tooltip on the label when text trimming occurs. Is there any way to determine when text trimming occurs on the UltraLabel?
Thanks,
John
ok, thanks Boris.
Hi John,
Please feel free to let us know if a question about our tool set comes up on your mind.
Hi Mike,
We are using 12.1. I think I'll tweak the screen design to allow for text wrap on the label so that I will not run into a situation where the label does not fit. Thanks for the info.
What version of the controls are you using? If you have the latest version (v13.1), then you can just set the AutoEllipsis property to true and the label will show a tooltip automatically when it needs to.
In any older version, you would have to measure the text yourself, which is, quite frankly, very complicated and difficult.