ASP.NET中DropDownList怎么绑定所有的系统字体
我找了好久,就是不知道fontfamily中得到所有的字体名字!哪位高手教一下
[解决办法]
InstalledFontCollection MyFont = new InstalledFontCollection();
FontFamily[] MyFontFamilies = MyFont.Families;
int Count = MyFontFamilies.Length;
for (int i = 0; i < Count; i++)
{
Console.WriteLine(MyFontFamilies[i].Name);
}
EnumFontFamilies