C#中怎样得到一个字符串的宽度和高度呢?有没有函数阿

2025-04-13 00:21:45
推荐回答(1个)
回答1:

有,可以用Control.CreateGraphics()方法,拿到控件的Graphics对象,然后使用Graphics.MeasureString就可以了。