使用SystemFont大小填充下拉列表 [英] Filling Dropdownlist with SystemFont size
本文介绍了使用SystemFont大小填充下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请提供填写系统字体大小的下拉列表的解决方案。
一个带有字体名称的下拉框和另一个带有字体大小的下拉框。
谢谢和问候,
Anupama
解决方案
您可以使用System.Drawing.FontFamily.Families来获取可用的字体。
List< string> fonts = new List< string>();
foreach (FontFamily font in System.Drawing.FontFamily.Families)
{
fonts.Add(font.Name);
}
填写mvc中的下拉列表
< a href =http://stackoverflow.com/questions/10112567/populate-dropdown-list-in-mvc> http://stackoverflow.com/questions/10112567/populate-dropdown-list-in-mvc [ ^ ]
Hi,
Please provide a solution for filling dropdownlist with system font size.
one dropdownbox with fontnames and another one with font size .
Thanks & Regards,
Anupama
解决方案
You can use System.Drawing.FontFamily.Families to get the available fonts. List<string> fonts = new List<string>(); foreach (FontFamily font in System.Drawing.FontFamily.Families) { fonts.Add(font.Name); }
Fill dropdown list in mvc
http://stackoverflow.com/questions/10112567/populate-dropdown-list-in-mvc[^]
这篇关于使用SystemFont大小填充下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文