如何设置a的字体TextBox from a string在后面的代码中?
TextBox
string
// example txtEditor.FontFamily = "Consolas";
txtEditor.FontFamily = new FontFamily("Consolas"); // the Media namespace