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
520
Identify if a text in a UltraWinEditor is truncated
posted

 Hi,

is it possible to identify if a text in a UltraWinEditor is truncated (no multiline, no text wrapping).

 Cheers,

Michael 

Parents
No Data
Reply
  • 37774
    posted

     Michael,

    The EditorWithTextUIElement exposes a property to indicate whether all of the text is currently visible:

     using Infragistics.Win;

    ... 

    bool isTruncated = false;
    EditorWithTextUIElement element = this.ultraTextEditor1.UIElement.GetDescendant(typeof(EditorWithTextUIElement)) as EditorWithTextUIElement;
    if (element != null)
        isTruncated = !element.IsDataFullyVisible;

     -Matt

Children