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
459
UltraComboEditor Text Display Area Width
posted

What is the property that holds the width of the area in an UltraComboEditor that holds any text values?  I don't want to include the width of the area that contains any ButtonsRight or ButtonsLeft buttons.  This is the 'closed up' area, nothing to do with the DropDownListWidth property.

I've tried the DisplayRectanble, Bounds, ClientRectangle, and ClientSize properties but they are alway the same size as the overall UltraComboEditor.

Thanks.

  • 69832
    Verified Answer
    Offline posted

    The control does not publicly expose any such property. If you like you can submit a feature request.

    You could probably use the UltraComboEditor.UIElement.GetDescendant( typeof(EditorWithTextDisplayTextUIElement) ) method to get the UIElement that represents the text area; UIElement exposes a Rect property, so Rect.Width would give you the area that is available in which to display text.