Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Determining if text is being trimmed in an UltraLabel
posted

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

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi John,

    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.

Reply Children