private void button1_Click(object sender, EventArgs e)
{
StringBuilder str 
= new StringBuilder(2000);
System.Drawing.Text.InstalledFontCollection fonts 
= new System.Drawing.Text.InstalledFontCollection();
foreach (System.Drawing.FontFamily family in fonts.Families)
{
str.Append(family.Name);
str.AppendLine();
}
textBox1.Text 
= str.ToString();
textBox1.Focus();
textBox1.SelectAll();
}
C#获取系统中的所有字体

C#获取系统中的所有字体




本文转自黄聪博客园博客,原文链接:http://www.cnblogs.com/huangcong/archive/2010/03/27/1698491.html,如需转载请自行联系原作者

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2021-07-10
  • 2021-06-10
  • 2021-11-27
  • 2022-01-31
  • 2021-08-12
相关资源
相似解决方案