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.
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;}
this.ultraFontNameEditor1.Font = new Font("Courier", 12);
this.ultraFontNameEditor1.DropDownListWidth = 50;}
Let me know if you have any additional questions.
I don't think I made myself clear enough. I don't want to change the font of the items displayed in the drop down list.
Currently the UltraFontNameEditor contains a list of every font available to the end user. I want to hide or remove the proportional fonts so the drop down list only contains non-proportional or fixed width fonts. Can this be done?