怎么取得字体的实际宽度?
new Font(_legendFontStyle, _legendFontSize)
其中
_legendFontStyle ="宋体";
_legendFontSize = 9
Graphics.FillRectangle 方法 [C#]
填充由一对坐标、一个宽度和一个高度指定的矩形的内部。
[C#] public void FillRectangle(Brush, float, float, float, float);
我这个方框中用的是float类型指定宽度
但是我上面的font中的宽度是unit.*****
我不知道怎么转换成我FillRectangle 方法中的float类型