资源简介
完成各种几何元素的绘制,包括Undo,Redo功能,实现了载入图像,实现了几何元素的拖拉操作等
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Anteprima : Form
{
public Anteprima()
{
InitializeComponent();
}
private void toolStripButton1_Click_1(object sender EventArgs e)
{
this.Close();
}
private void toolStripButton2_Click(object sender EventArgs e)
{
this.docToPrint.Print();
}
private void Anteprima_Load(object sender EventArgs e)
{
}
private void Anteprima_Resize(object sender EventArgs e)
{
this.PrintPreviewControl1.Width = this.Width - 10;
this.PrintPreviewControl1.Height = this.Height - this.toolStrip1.Height - 37;
}
private void toolStripMenuItem2_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem2.Text) / 100;
}
private void toolStripMenuItem3_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem3.Text) / 100;
}
private void toolStripMenuItem4_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem4.Text) / 100;
}
private void toolStripMenuItem5_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem5.Text) / 100;
}
private void toolStripMenuItem6_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem6.Text) / 100;
}
private void toolStripMenuItem7_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem7.Text) / 100;
}
private void toolStripMenuItem8_Click(object sender EventArgs e)
{
this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem8.Text) / 100;
}
private void PrintPreviewControl1_MouseMove(object sender MouseEventArgs e)
{
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2537 2007-11-08 17:46 Draw\WindowsApplication1\Anteprima.cs
文件 9522 2007-11-08 17:46 Draw\WindowsApplication1\Anteprima.Designer.cs
文件 6211 2007-11-08 17:46 Draw\WindowsApplication1\Anteprima.resx
文件 49152 2017-03-18 11:04 Draw\WindowsApplication1\bin\Debug\AxInterop.SHDocVw.dll
文件 155648 2017-03-18 11:04 Draw\WindowsApplication1\bin\Debug\Interop.SHDocVw.dll
文件 29108 2017-03-18 11:04 Draw\WindowsApplication1\bin\Debug\test.xm
文件 192000 2017-03-18 11:04 Draw\WindowsApplication1\bin\Debug\WindowsApplication1.exe
文件 417280 2017-03-18 11:04 Draw\WindowsApplication1\bin\Debug\WindowsApplication1.pdb
文件 14328 2017-03-18 11:48 Draw\WindowsApplication1\bin\Debug\WindowsApplication1.vshost.exe
文件 490 2014-11-21 20:53 Draw\WindowsApplication1\bin\Debug\WindowsApplication1.vshost.exe.manifest
文件 1638 2007-05-15 13:36 Draw\WindowsApplication1\Ce.bmp
文件 11049 2007-05-22 11:00 Draw\WindowsApplication1\Class1.cs
文件 4388 2007-05-11 16:18 Draw\WindowsApplication1\CommandForm.cs
文件 11737 2007-05-11 16:18 Draw\WindowsApplication1\CommandForm.Designer.cs
文件 17900 2007-05-11 16:18 Draw\WindowsApplication1\CommandForm.resx
文件 766 2007-12-19 15:21 Draw\WindowsApplication1\delPoint3.cur
文件 1638 2007-05-15 13:37 Draw\WindowsApplication1\Dx.bmp
文件 4579 2009-01-26 09:40 Draw\WindowsApplication1\Form1.cs
文件 6220 2009-01-26 09:40 Draw\WindowsApplication1\Form1.Designer.cs
文件 5987 2009-01-26 09:40 Draw\WindowsApplication1\Form1.resx
文件 33929 2008-10-09 16:07 Draw\WindowsApplication1\Handle.cs
文件 2241 2007-11-09 10:37 Draw\WindowsApplication1\Help.cs
文件 3679 2007-11-09 10:37 Draw\WindowsApplication1\Help.Designer.cs
文件 5814 2007-11-09 10:37 Draw\WindowsApplication1\Help.resx
文件 3038 2008-02-07 13:00 Draw\WindowsApplication1\myTypeEditor.cs
文件 766 2007-12-19 10:08 Draw\WindowsApplication1\NewPoint.ico
文件 766 2007-12-19 15:17 Draw\WindowsApplication1\newPoint3.cur
文件 49152 2017-03-18 11:04 Draw\WindowsApplication1\obj\Debug\AxInterop.SHDocVw.dll
文件 155648 2017-03-18 11:04 Draw\WindowsApplication1\obj\Debug\Interop.SHDocVw.dll
文件 180 2017-03-18 11:04 Draw\WindowsApplication1\obj\Debug\WindowsApplication1.Anteprima.resources
............此处省略71个文件信息
评论
共有 条评论