C#中如何获取一个字体的宽度值(像素单位)?

http://zhidao.baidu.com/link?url=OP4gAoY8xWq8wYBa11YiqLM6grlaU6qo1pQOlOM29Ob-Wh8iYpnU0mDxwEeIkTbdAMY7_o7sWey9vlXJd5hPK_
是不是这个意思
        private void button1_Click(object sender, EventArgs e)
        {
            Graphics g = this.CreateGraphics();
            SizeF sizeF = g.MeasureString("A", new Font("宋体", 9));
            MessageBox.Show(sizeF.Width + " " + sizeF.Height);
            g.Dispose();
        }

你可能感兴趣的:(C#中如何获取一个字体的宽度值(像素单位)?)