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
425
How can you tell if an UltraTextEditor is in an overflow state?
posted

I want to show a tool tip from the MouseHover event that will display the entire text of an UltraTextEditor, but only when the control is in a data overflow state. How can you tell if the control's Text property contains more data than can be displayed in the field?

Parents
No Data
Reply
  • 37774
    posted

    The associated UIElement has an IsDataFullyVisible property that you can check, such as:

     EditorWithTextUIElement textUI = this.ultraTextEditor1.UIElement.GetDescendant(typeof(EditorWithTextUIElement)) as EditorWithTextUIElement;
    if (textUI != null)
    {
        bool isTextFullyVisible = textUI.IsDataFullyVisible;
    }

    -Matt

Children
No Data