访问量: 28955次,访客数: 24439人,浏览量: 1次 
首页  编辑  

获得文字输出的高宽

Tags: /C#/图形图像/   Date Created: Tue Jun 10 2008 01:18:35 GMT+0000 (Coordinated Universal Time)

Graphics vGraphics = CreateGraphics();

SizeF vSizeF = vGraphics . MeasureString( "Zswang" , Font);

Console . WriteLine(vSizeF);