?? layout.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MKIms3
{
/// <summary>
/// LayOut 的摘要說明。
/// </summary>
public class LayOut : System.Windows.Forms.Form
{
public AxSuperLayoutLib.AxSuperLayout axSuperLayout1;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem m_page_set;
private System.Windows.Forms.MenuItem m_print_set;
private System.Windows.Forms.MenuItem m_out_bmp;
private System.Windows.Forms.MenuItem m_out_print;
private System.Windows.Forms.MenuItem m_exit;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem m_draw_point;
private System.Windows.Forms.MenuItem menuItem13;
private System.Windows.Forms.MenuItem m_draw_linesect;
private System.Windows.Forms.MenuItem m_draw_polyline;
private System.Windows.Forms.MenuItem m_draw_arc;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem m_draw_rect;
private System.Windows.Forms.MenuItem m_draw_roundrect;
private System.Windows.Forms.MenuItem m_draw_ellipse;
private System.Windows.Forms.MenuItem m_draw_polygon;
private System.Windows.Forms.MenuItem menuItem19;
private System.Windows.Forms.MenuItem m_draw_text;
private System.Windows.Forms.MenuItem m_draw_arttext;
private System.Windows.Forms.MenuItem menuItem22;
private System.Windows.Forms.MenuItem m_draw_map;
private System.Windows.Forms.MenuItem m_draw_legend;
private System.Windows.Forms.MenuItem m_draw_scale;
private System.Windows.Forms.MenuItem m_draw_direaction;
private System.Windows.Forms.MenuItem m_draw_table;
private System.Windows.Forms.MenuItem m_draw_picture;
private System.Windows.Forms.MenuItem menuItem29;
private System.Windows.Forms.MenuItem m_null;
private System.Windows.Forms.MenuItem m_zoomout;
private System.Windows.Forms.MenuItem m_zoomin;
private System.Windows.Forms.MenuItem m_pan;
private System.Windows.Forms.MenuItem m_height;
private System.Windows.Forms.MenuItem m_with;
private System.Windows.Forms.MenuItem menuItem2;
private Crownwood.DotNetMagic.Controls.ToolControl toolControl1;
private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_print;
private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_in;
private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_out;
private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_pan;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem m_select;
private Crownwood.DotNetMagic.Controls.Command.ButtonCommand buttonCommand_select;
private Crownwood.DotNetMagic.Controls.Command.SeparatorCommand separatorCommand1;
private Crownwood.DotNetMagic.Controls.Command.SeparatorCommand separatorCommand2;
private System.Windows.Forms.MenuItem menuItem4;
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
public LayOut()
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(LayOut));
this.axSuperLayout1 = new AxSuperLayoutLib.AxSuperLayout();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.m_page_set = new System.Windows.Forms.MenuItem();
this.m_print_set = new System.Windows.Forms.MenuItem();
this.m_out_bmp = new System.Windows.Forms.MenuItem();
this.m_out_print = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.m_exit = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.m_draw_point = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.m_draw_linesect = new System.Windows.Forms.MenuItem();
this.m_draw_polyline = new System.Windows.Forms.MenuItem();
this.m_draw_arc = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.m_draw_rect = new System.Windows.Forms.MenuItem();
this.m_draw_roundrect = new System.Windows.Forms.MenuItem();
this.m_draw_ellipse = new System.Windows.Forms.MenuItem();
this.m_draw_polygon = new System.Windows.Forms.MenuItem();
this.menuItem19 = new System.Windows.Forms.MenuItem();
this.m_draw_text = new System.Windows.Forms.MenuItem();
this.m_draw_arttext = new System.Windows.Forms.MenuItem();
this.menuItem22 = new System.Windows.Forms.MenuItem();
this.m_draw_map = new System.Windows.Forms.MenuItem();
this.m_draw_legend = new System.Windows.Forms.MenuItem();
this.m_draw_scale = new System.Windows.Forms.MenuItem();
this.m_draw_direaction = new System.Windows.Forms.MenuItem();
this.m_draw_table = new System.Windows.Forms.MenuItem();
this.m_draw_picture = new System.Windows.Forms.MenuItem();
this.menuItem29 = new System.Windows.Forms.MenuItem();
this.m_select = new System.Windows.Forms.MenuItem();
this.m_null = new System.Windows.Forms.MenuItem();
this.m_zoomout = new System.Windows.Forms.MenuItem();
this.m_zoomin = new System.Windows.Forms.MenuItem();
this.m_pan = new System.Windows.Forms.MenuItem();
this.m_height = new System.Windows.Forms.MenuItem();
this.m_with = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.toolControl1 = new Crownwood.DotNetMagic.Controls.ToolControl();
this.buttonCommand_print = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
this.separatorCommand1 = new Crownwood.DotNetMagic.Controls.Command.SeparatorCommand();
this.buttonCommand_out = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
this.buttonCommand_in = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
this.buttonCommand_pan = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
this.separatorCommand2 = new Crownwood.DotNetMagic.Controls.Command.SeparatorCommand();
this.buttonCommand_select = new Crownwood.DotNetMagic.Controls.Command.ButtonCommand();
((System.ComponentModel.ISupportInitialize)(this.axSuperLayout1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.toolControl1)).BeginInit();
this.SuspendLayout();
//
// axSuperLayout1
//
this.axSuperLayout1.Dock = System.Windows.Forms.DockStyle.Fill;
this.axSuperLayout1.Enabled = true;
this.axSuperLayout1.Location = new System.Drawing.Point(0, 27);
this.axSuperLayout1.Name = "axSuperLayout1";
this.axSuperLayout1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperLayout1.OcxState")));
this.axSuperLayout1.Size = new System.Drawing.Size(480, 270);
this.axSuperLayout1.TabIndex = 1;
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem8,
this.menuItem29,
this.menuItem2});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.m_page_set,
this.m_print_set,
this.m_out_bmp,
this.m_out_print,
this.menuItem6,
this.m_exit});
this.menuItem1.Text = "打印 (&P)";
//
// m_page_set
//
this.m_page_set.Index = 0;
this.m_page_set.Text = "頁面設置";
this.m_page_set.Click += new System.EventHandler(this.m_page_set_Click);
//
// m_print_set
//
this.m_print_set.Index = 1;
this.m_print_set.Text = "打印設置";
this.m_print_set.Click += new System.EventHandler(this.m_print_set_Click);
//
// m_out_bmp
//
this.m_out_bmp.Index = 2;
this.m_out_bmp.Text = "輸出為圖片";
this.m_out_bmp.Click += new System.EventHandler(this.m_out_bmp_Click);
//
// m_out_print
//
this.m_out_print.Index = 3;
this.m_out_print.Text = "輸出到打印機";
this.m_out_print.Click += new System.EventHandler(this.m_out_print_Click);
//
// menuItem6
//
this.menuItem6.Index = 4;
this.menuItem6.Text = "-";
//
// m_exit
//
this.m_exit.Index = 5;
this.m_exit.Text = "退出";
this.m_exit.Click += new System.EventHandler(this.m_exit_Click);
//
// menuItem8
//
this.menuItem8.Index = 1;
this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.m_draw_point,
this.menuItem13,
this.menuItem14,
this.menuItem19,
this.menuItem22,
this.m_draw_table,
this.m_draw_picture});
this.menuItem8.Text = "繪制對象 (&D)";
//
// m_draw_point
//
this.m_draw_point.Index = 0;
this.m_draw_point.Text = "點對象";
this.m_draw_point.Click += new System.EventHandler(this.m_draw_point_Click);
//
// menuItem13
//
this.menuItem13.Index = 1;
this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.m_draw_linesect,
this.m_draw_polyline,
this.m_draw_arc});
this.menuItem13.Text = "線對象";
//
// m_draw_linesect
//
this.m_draw_linesect.Index = 0;
this.m_draw_linesect.Text = "直線";
this.m_draw_linesect.Click += new System.EventHandler(this.m_draw_linesect_Click);
//
// m_draw_polyline
//
this.m_draw_polyline.Index = 1;
this.m_draw_polyline.Text = "折線";
this.m_draw_polyline.Click += new System.EventHandler(this.m_draw_polyline_Click);
//
// m_draw_arc
//
this.m_draw_arc.Index = 2;
this.m_draw_arc.Text = "弧線";
this.m_draw_arc.Click += new System.EventHandler(this.m_draw_arc_Click);
//
// menuItem14
//
this.menuItem14.Index = 2;
this.menuItem14.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.m_draw_rect,
this.m_draw_roundrect,
this.m_draw_ellipse,
this.m_draw_polygon});
this.menuItem14.Text = "面對象";
//
// m_draw_rect
//
this.m_draw_rect.Index = 0;
this.m_draw_rect.Text = "矩形";
this.m_draw_rect.Click += new System.EventHandler(this.m_draw_rect_Click);
//
// m_draw_roundrect
//
this.m_draw_roundrect.Index = 1;
this.m_draw_roundrect.Text = "圓角矩形";
this.m_draw_roundrect.Click += new System.EventHandler(this.m_draw_roundrect_Click);
//
// m_draw_ellipse
//
this.m_draw_ellipse.Index = 2;
this.m_draw_ellipse.Text = "橢圓";
this.m_draw_ellipse.Click += new System.EventHandler(this.m_draw_ellipse_Click);
//
// m_draw_polygon
//
this.m_draw_polygon.Index = 3;
this.m_draw_polygon.Text = "多邊形";
this.m_draw_polygon.Click += new System.EventHandler(this.m_draw_polygon_Click);
//
// menuItem19
//
this.menuItem19.Index = 3;
this.menuItem19.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.m_draw_text,
this.m_draw_arttext});
this.menuItem19.Text = "文字";
//
// m_draw_text
//
this.m_draw_text.Index = 0;
this.m_draw_text.Text = "普通文本";
this.m_draw_text.Click += new System.EventHandler(this.m_draw_text_Click);
//
// m_draw_arttext
//
this.m_draw_arttext.Index = 1;
this.m_draw_arttext.Text = "藝術字";
this.m_draw_arttext.Click += new System.EventHandler(this.m_draw_arttext_Click);
//
// menuItem22
//
this.menuItem22.Index = 4;
this.menuItem22.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.m_draw_map,
this.m_draw_legend,
this.m_draw_scale,
this.m_draw_direaction});
this.menuItem22.Text = "地圖對象";
//
// m_draw_map
//
this.m_draw_map.Index = 0;
this.m_draw_map.Text = "地圖";
this.m_draw_map.Click += new System.EventHandler(this.m_draw_map_Click);
//
// m_draw_legend
//
this.m_draw_legend.Index = 1;
this.m_draw_legend.Text = "圖例";
this.m_draw_legend.Click += new System.EventHandler(this.m_draw_legend_Click);
//
// m_draw_scale
//
this.m_draw_scale.Index = 2;
this.m_draw_scale.Text = "比例尺";
this.m_draw_scale.Click += new System.EventHandler(this.m_draw_scale_Click);
//
// m_draw_direaction
//
this.m_draw_direaction.Index = 3;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -