string s=this.textBox1.Text.Trim();
float w=0;
float h=0;
Graphics g=Graphics.FromHwnd(this.Handle);
Font myf=new Font("宋体",15);
StringFormat sf=new StringFormat(StringFormat.GenericTypographic);
SizeF size=g.MeasureString(s,myf,1000,sf);
相关文章:
-
2021-10-22
-
2022-01-08
-
2021-06-04
-
2022-12-23
-
2021-09-22
-
2022-02-20
猜你喜欢
-
2021-07-29
-
2021-10-08
-
2021-11-17
-
2021-09-23
-
2022-01-08
-
2022-12-23
-
2021-12-25
相关资源
-
下载
2023-03-26
-
下载
2023-01-16
-
下载
2023-03-08
-
下载
2023-03-27