//加载计算机上可用的字体 public string LoadFonts() { try { var fontCollection = new InstalledFontCollection(); var mycomputerfonts = fontCollection.Families; if (!mycomputerfonts.Any()) return null; ); var newfonts = mycomputerfonts.Reverse().ToList(); list.Add…
//加载计算机上可用的字体 public void LoadFonts(object ietfLanguageTag) { try { var sysFonts = Fonts.SystemFontFamilies; foreach (var item in sysFonts) { var key = XmlLanguage.GetLanguage(ietfLanguageTag.ToString()); var fontName = string.Empty; if (item.FamilyN…
public class Person { public string Name{get;set;} public string Phone{get;set;} } view层 @model Model.Person @{ ViewBag.Title = "Add";} @using (Html.BeginForm("doAdd","person",FormMethod.Post) { } 1.通过request.form获取表单数据 pu…