C# 根据字体和字体类型获取相应宽度

原创
2021/09/13 16:51
阅读数 776

using System.Windows.Forms

var gp = this.CreateGraphics(); var fontwidth = gp.MeasureString(orderCodeInfoTemp.Name, this.Font).Width;

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部