110,499
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Drawing.Printing;
class HelloPrinter : Form
{
public static void Main()
{
Application.Run(new HelloPrinter());
}
public HelloPrinter()
{
Text = "Hello Printer!";
BackColor = SystemColors.Window;
ForeColor = SystemColors.WindowText;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Graphics grfx = e.Graphics;
string i = "i";
string w = "W";
string iw = "iw";
SizeF iSize = grfx.MeasureString(i, Font);
SizeF wSize = grfx.MeasureString(w, Font);
SizeF iwSize = grfx.MeasureString(iw, Font);
}
}
AWA
VAV
HHH