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
625
Measure String?
posted

I'm not sure if this is the correct place to ask this; but I have an Infragistics.Win.UltraWinEditors.EditorButton that is used to display some text inside of an UltraComboEditor. 

 

I want the editor button to automatically resize based on the text it is given.  But I can't seem to find any sort of .AutoSize = True on the EditorButton.  I figured I could use the System.Graphics.MeasureString to get the size of the text and set the width of the button accordingly....but MeasureString needs a System.Windows.Font and the EditorButton doesn't seem to have that.  I can access the Appearance.FontData.Name and Appearance.FontData.Size but those are "",0 and that doesn't seem to help.

 

What should I be doing to get my EditorButton to correctly size?