gpt4 book ai didi

c# - 从后面的代码设置 TextBox 的字体

转载 作者:IT王子 更新时间:2023-10-29 04:05:38 27 4
gpt4 key购买 nike

如何在后面的代码中从 string 设置 TextBox 的字体?

// example
txtEditor.FontFamily = "Consolas";

最佳答案

txtEditor.FontFamily = new FontFamily("Consolas"); // the Media namespace

关于c# - 从后面的代码设置 TextBox 的字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4002290/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com