//需要引用命名空間 using System.Drawing; using System.Drawing.Text; //獲取系統字體方法 public dynamic GetFontNames() { FontFamily[] fontFamilies; InstalledFontCollect... ...
//需要引用命名空間 using System.Drawing; using System.Drawing.Text; //獲取系統字體方法 public dynamic GetFontNames() { FontFamily[] fontFamilies; InstalledFontCollection installedFontCollection = new InstalledFontCollection(); fontFamilies = installedFontCollection.Families; return fontFamilies; }