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
1871
ultraFontNameEditor hide certain fonts.
posted

I want to use your ultraFontNameEditor but I need the list to limited to fixed-width or non-proportional fonts. Is this possible? For instance Courier is a fixed width font.

Parents
  • 29105
    Offline posted

    Hello Michael,

    Two properties come to mind.

    1. DropDownListWidth property can be used to set a fixed width on the items displayed in the editor's dropdown.
    2. ShowFontNamesInFont allows you to toggle on or off the fonts that are shown for the text corresponding font.
    3. If set to false you can then use the Font property to overrdie what font you wish to display. By default I believe the editor will display Courier for all the list items.

    Here is an example of the properties:


    private void Form1_Load(object sender, EventArgs e)
    {
       this.ultraFontNameEditor1.ShowFontNamesInFont = false;

       this.ultraFontNameEditor1.Font = new Font("Courier", 12);

       this.ultraFontNameEditor1.DropDownListWidth = 50;
    }

    Let me know if you have any additional questions.

     

     

Reply Children