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#获取系统中的所有字体

相关文章:

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