/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.chkDragDrop          = new System.Windows.Forms.CheckBox();
     this.Label6               = new System.Windows.Forms.Label();
     this.Label5               = new System.Windows.Forms.Label();
     this.Label2               = new System.Windows.Forms.Label();
     this.Label4               = new System.Windows.Forms.Label();
     this.Label3               = new System.Windows.Forms.Label();
     this.Label1               = new System.Windows.Forms.Label();
     this.axToolbarControl1    = new ESRI.ArcGIS.Controls.AxToolbarControl();
     this.axTOCControl1        = new ESRI.ArcGIS.Controls.AxTOCControl();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.axLicenseControl1    = new ESRI.ArcGIS.Controls.AxLicenseControl();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
     this.SuspendLayout();
     //
     // chkDragDrop
     //
     this.chkDragDrop.Location = new System.Drawing.Point(432, 16);
     this.chkDragDrop.Name     = "chkDragDrop";
     this.chkDragDrop.Size     = new System.Drawing.Size(168, 16);
     this.chkDragDrop.TabIndex = 5;
     this.chkDragDrop.Text     = "Layer Drag and Drop";
     this.chkDragDrop.Click   += new System.EventHandler(this.chkDragDrop_Click);
     //
     // Label6
     //
     this.Label6.Location = new System.Drawing.Point(432, 234);
     this.Label6.Name     = "Label6";
     this.Label6.Size     = new System.Drawing.Size(184, 56);
     this.Label6.TabIndex = 16;
     this.Label6.Text     = "6) Move a layer into the new map by dragging and dropping a layer whilst holding " +
                            "the CTRL key down inside the TOCControl";
     //
     // Label5
     //
     this.Label5.Location = new System.Drawing.Point(432, 184);
     this.Label5.Name     = "Label5";
     this.Label5.Size     = new System.Drawing.Size(184, 56);
     this.Label5.TabIndex = 15;
     this.Label5.Text     = "5) Copy a layer into the new map by dragging and dropping a layer inside the TOCC" +
                            "ontrol";
     //
     // Label2
     //
     this.Label2.Location = new System.Drawing.Point(432, 96);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(176, 32);
     this.Label2.TabIndex = 12;
     this.Label2.Text     = "3) Re-order the layers in the TOCControl";
     //
     // Label4
     //
     this.Label4.Location = new System.Drawing.Point(432, 128);
     this.Label4.Name     = "Label4";
     this.Label4.Size     = new System.Drawing.Size(176, 56);
     this.Label4.TabIndex = 14;
     this.Label4.Text     = "4) Right click on the PageLayoutControl and drag a rectangle to create a new MapF" +
                            "rame";
     //
     // Label3
     //
     this.Label3.Location = new System.Drawing.Point(432, 72);
     this.Label3.Name     = "Label3";
     this.Label3.Size     = new System.Drawing.Size(176, 32);
     this.Label3.TabIndex = 13;
     this.Label3.Text     = "2) Enable layer drag and drop";
     //
     // Label1
     //
     this.Label1.Location = new System.Drawing.Point(432, 40);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(176, 32);
     this.Label1.TabIndex = 11;
     this.Label1.Text     = "1) Load a map document into the PageLayoutControl";
     //
     // axToolbarControl1
     //
     this.axToolbarControl1.Location = new System.Drawing.Point(8, 8);
     this.axToolbarControl1.Name     = "axToolbarControl1";
     this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
     this.axToolbarControl1.Size     = new System.Drawing.Size(416, 28);
     this.axToolbarControl1.TabIndex = 17;
     //
     // axTOCControl1
     //
     this.axTOCControl1.Location = new System.Drawing.Point(8, 40);
     this.axTOCControl1.Name     = "axTOCControl1";
     this.axTOCControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTOCControl1.OcxState")));
     this.axTOCControl1.Size     = new System.Drawing.Size(144, 344);
     this.axTOCControl1.TabIndex = 18;
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Location     = new System.Drawing.Point(160, 40);
     this.axPageLayoutControl1.Name         = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState     = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size         = new System.Drawing.Size(256, 344);
     this.axPageLayoutControl1.TabIndex     = 19;
     this.axPageLayoutControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IPageLayoutControlEvents_Ax_OnMouseDownEventHandler(this.axPageLayoutControl1_OnMouseDown);
     //
     // axLicenseControl1
     //
     this.axLicenseControl1.Enabled  = true;
     this.axLicenseControl1.Location = new System.Drawing.Point(56, 48);
     this.axLicenseControl1.Name     = "axLicenseControl1";
     this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
     this.axLicenseControl1.Size     = new System.Drawing.Size(32, 32);
     this.axLicenseControl1.TabIndex = 20;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(616, 390);
     this.Controls.Add(this.axLicenseControl1);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.axTOCControl1);
     this.Controls.Add(this.axToolbarControl1);
     this.Controls.Add(this.Label6);
     this.Controls.Add(this.Label5);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.Label4);
     this.Controls.Add(this.Label3);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.chkDragDrop);
     this.Name  = "Form1";
     this.Text  = "Layer Drag and Drop";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.button1              = new System.Windows.Forms.Button();
     this.button2              = new System.Windows.Forms.Button();
     this.button3              = new System.Windows.Forms.Button();
     this.button4              = new System.Windows.Forms.Button();
     this.comboBox1            = new System.Windows.Forms.ComboBox();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.axLicenseControl1    = new ESRI.ArcGIS.Controls.AxLicenseControl();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(8, 8);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(88, 24);
     this.button1.TabIndex = 1;
     this.button1.Text     = "Open File";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(112, 8);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(88, 24);
     this.button2.TabIndex = 4;
     this.button2.Text     = "Page Setup";
     this.button2.Click   += new System.EventHandler(this.button2_Click);
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(216, 8);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(88, 24);
     this.button3.TabIndex = 5;
     this.button3.Text     = "Print Preview";
     this.button3.Click   += new System.EventHandler(this.button3_Click);
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(320, 8);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(88, 24);
     this.button4.TabIndex = 6;
     this.button4.Text     = "Print";
     this.button4.Click   += new System.EventHandler(this.button4_Click);
     //
     // comboBox1
     //
     this.comboBox1.Location = new System.Drawing.Point(424, 8);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(144, 21);
     this.comboBox1.TabIndex = 8;
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Location = new System.Drawing.Point(0, 48);
     this.axPageLayoutControl1.Name     = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size     = new System.Drawing.Size(680, 520);
     this.axPageLayoutControl1.TabIndex = 9;
     //
     // axLicenseControl1
     //
     this.axLicenseControl1.Enabled  = true;
     this.axLicenseControl1.Location = new System.Drawing.Point(512, 88);
     this.axLicenseControl1.Name     = "axLicenseControl1";
     this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
     this.axLicenseControl1.Size     = new System.Drawing.Size(32, 32);
     this.axLicenseControl1.TabIndex = 10;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(680, 566);
     this.Controls.Add(this.axLicenseControl1);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.button4);
     this.Controls.Add(this.button3);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.button1);
     this.Name  = "Form1";
     this.Text  = "Print Preview / Print dialog Sample";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
     this.ResumeLayout(false);
 }
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.chkDragDrop = new System.Windows.Forms.CheckBox();
            this.Label6 = new System.Windows.Forms.Label();
            this.Label5 = new System.Windows.Forms.Label();
            this.Label2 = new System.Windows.Forms.Label();
            this.Label4 = new System.Windows.Forms.Label();
            this.Label3 = new System.Windows.Forms.Label();
            this.Label1 = new System.Windows.Forms.Label();
            this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl();
            this.axTOCControl1 = new ESRI.ArcGIS.Controls.AxTOCControl();
            this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
            this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl();
            ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
            this.SuspendLayout();
            // 
            // chkDragDrop
            // 
            this.chkDragDrop.Location = new System.Drawing.Point(432, 16);
            this.chkDragDrop.Name = "chkDragDrop";
            this.chkDragDrop.Size = new System.Drawing.Size(168, 16);
            this.chkDragDrop.TabIndex = 5;
            this.chkDragDrop.Text = "Layer Drag and Drop";
            this.chkDragDrop.Click += new System.EventHandler(this.chkDragDrop_Click);
            // 
            // Label6
            // 
            this.Label6.Location = new System.Drawing.Point(432, 234);
            this.Label6.Name = "Label6";
            this.Label6.Size = new System.Drawing.Size(184, 56);
            this.Label6.TabIndex = 16;
            this.Label6.Text = "6) Move a layer into the new map by dragging and dropping a layer whilst holding " +
                "the CTRL key down inside the TOCControl";
            // 
            // Label5
            // 
            this.Label5.Location = new System.Drawing.Point(432, 184);
            this.Label5.Name = "Label5";
            this.Label5.Size = new System.Drawing.Size(184, 56);
            this.Label5.TabIndex = 15;
            this.Label5.Text = "5) Copy a layer into the new map by dragging and dropping a layer inside the TOCC" +
                "ontrol";
            // 
            // Label2
            // 
            this.Label2.Location = new System.Drawing.Point(432, 96);
            this.Label2.Name = "Label2";
            this.Label2.Size = new System.Drawing.Size(176, 32);
            this.Label2.TabIndex = 12;
            this.Label2.Text = "3) Re-order the layers in the TOCControl";
            // 
            // Label4
            // 
            this.Label4.Location = new System.Drawing.Point(432, 128);
            this.Label4.Name = "Label4";
            this.Label4.Size = new System.Drawing.Size(176, 56);
            this.Label4.TabIndex = 14;
            this.Label4.Text = "4) Right click on the PageLayoutControl and drag a rectangle to create a new MapF" +
                "rame";
            // 
            // Label3
            // 
            this.Label3.Location = new System.Drawing.Point(432, 72);
            this.Label3.Name = "Label3";
            this.Label3.Size = new System.Drawing.Size(176, 32);
            this.Label3.TabIndex = 13;
            this.Label3.Text = "2) Enable layer drag and drop";
            // 
            // Label1
            // 
            this.Label1.Location = new System.Drawing.Point(432, 40);
            this.Label1.Name = "Label1";
            this.Label1.Size = new System.Drawing.Size(176, 32);
            this.Label1.TabIndex = 11;
            this.Label1.Text = "1) Load a map document into the PageLayoutControl";
            // 
            // axToolbarControl1
            // 
            this.axToolbarControl1.Location = new System.Drawing.Point(8, 8);
            this.axToolbarControl1.Name = "axToolbarControl1";
            this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
            this.axToolbarControl1.Size = new System.Drawing.Size(416, 28);
            this.axToolbarControl1.TabIndex = 17;
            // 
            // axTOCControl1
            // 
            this.axTOCControl1.Location = new System.Drawing.Point(8, 40);
            this.axTOCControl1.Name = "axTOCControl1";
            this.axTOCControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTOCControl1.OcxState")));
            this.axTOCControl1.Size = new System.Drawing.Size(144, 344);
            this.axTOCControl1.TabIndex = 18;
            // 
            // axPageLayoutControl1
            // 
            this.axPageLayoutControl1.Location = new System.Drawing.Point(160, 40);
            this.axPageLayoutControl1.Name = "axPageLayoutControl1";
            this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
            this.axPageLayoutControl1.Size = new System.Drawing.Size(256, 344);
            this.axPageLayoutControl1.TabIndex = 19;
            this.axPageLayoutControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IPageLayoutControlEvents_Ax_OnMouseDownEventHandler(this.axPageLayoutControl1_OnMouseDown);
            // 
            // axLicenseControl1
            // 
            this.axLicenseControl1.Enabled = true;
            this.axLicenseControl1.Location = new System.Drawing.Point(56, 48);
            this.axLicenseControl1.Name = "axLicenseControl1";
            this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
            this.axLicenseControl1.Size = new System.Drawing.Size(32, 32);
            this.axLicenseControl1.TabIndex = 20;
            // 
            // Form1
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(616, 390);
            this.Controls.Add(this.axLicenseControl1);
            this.Controls.Add(this.axPageLayoutControl1);
            this.Controls.Add(this.axTOCControl1);
            this.Controls.Add(this.axToolbarControl1);
            this.Controls.Add(this.Label6);
            this.Controls.Add(this.Label5);
            this.Controls.Add(this.Label2);
            this.Controls.Add(this.Label4);
            this.Controls.Add(this.Label3);
            this.Controls.Add(this.Label1);
            this.Controls.Add(this.chkDragDrop);
            this.Name = "Form1";
            this.Text = "Layer Drag and Drop";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
            this.ResumeLayout(false);

		}
Esempio n. 4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
     this.txtPath              = new System.Windows.Forms.TextBox();
     this.cmdLoadDoc           = new System.Windows.Forms.Button();
     this.openFileDialog1      = new System.Windows.Forms.OpenFileDialog();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.axLicenseControl1    = new ESRI.ArcGIS.Controls.AxLicenseControl();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
     this.SuspendLayout();
     //
     // txtPath
     //
     this.txtPath.Enabled  = false;
     this.txtPath.Location = new System.Drawing.Point(8, 40);
     this.txtPath.Name     = "txtPath";
     this.txtPath.Size     = new System.Drawing.Size(352, 20);
     this.txtPath.TabIndex = 1;
     //
     // cmdLoadDoc
     //
     this.cmdLoadDoc.Location = new System.Drawing.Point(232, 8);
     this.cmdLoadDoc.Name     = "cmdLoadDoc";
     this.cmdLoadDoc.Size     = new System.Drawing.Size(128, 24);
     this.cmdLoadDoc.TabIndex = 2;
     this.cmdLoadDoc.Text     = "Load Map Document";
     this.cmdLoadDoc.Click   += new System.EventHandler(this.cmdLoadDoc_Click);
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Location = new System.Drawing.Point(8, 64);
     this.axPageLayoutControl1.Name     = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size     = new System.Drawing.Size(352, 368);
     this.axPageLayoutControl1.TabIndex = 3;
     //
     // axLicenseControl1
     //
     this.axLicenseControl1.Enabled  = true;
     this.axLicenseControl1.Location = new System.Drawing.Point(8, 2);
     this.axLicenseControl1.Name     = "axLicenseControl1";
     this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
     this.axLicenseControl1.Size     = new System.Drawing.Size(32, 32);
     this.axLicenseControl1.TabIndex = 4;
     //
     // frmMain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(368, 438);
     this.Controls.Add(this.axLicenseControl1);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.cmdLoadDoc);
     this.Controls.Add(this.txtPath);
     this.Name = "frmMain";
     this.Text = "Load Map Document";
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintActiveview));
     this.btnOpenFile          = new System.Windows.Forms.Button();
     this.btnPageSetup         = new System.Windows.Forms.Button();
     this.btnPrintPreview      = new System.Windows.Forms.Button();
     this.btnPrint             = new System.Windows.Forms.Button();
     this.cbxMappingType       = new System.Windows.Forms.ComboBox();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.lblPrinter           = new System.Windows.Forms.Label();
     this.cbxPrinterType       = new System.Windows.Forms.ComboBox();
     this.lblMapping           = new System.Windows.Forms.Label();
     this.axToolbarControl1    = new ESRI.ArcGIS.Controls.AxToolbarControl();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
     this.SuspendLayout();
     //
     // btnOpenFile
     //
     this.btnOpenFile.Location = new System.Drawing.Point(225, 45);
     this.btnOpenFile.Name     = "btnOpenFile";
     this.btnOpenFile.Size     = new System.Drawing.Size(116, 26);
     this.btnOpenFile.TabIndex = 1;
     this.btnOpenFile.Text     = "打印其他地图文档";
     this.btnOpenFile.Click   += new System.EventHandler(this.btnOpenFile_Click);
     //
     // btnPageSetup
     //
     this.btnPageSetup.Location = new System.Drawing.Point(10, 45);
     this.btnPageSetup.Name     = "btnPageSetup";
     this.btnPageSetup.Size     = new System.Drawing.Size(72, 26);
     this.btnPageSetup.TabIndex = 4;
     this.btnPageSetup.Text     = "页面设置";
     this.btnPageSetup.Click   += new System.EventHandler(this.btnPageSetup_Click);
     //
     // btnPrintPreview
     //
     this.btnPrintPreview.Location = new System.Drawing.Point(87, 45);
     this.btnPrintPreview.Name     = "btnPrintPreview";
     this.btnPrintPreview.Size     = new System.Drawing.Size(68, 26);
     this.btnPrintPreview.TabIndex = 5;
     this.btnPrintPreview.Text     = "打印预览";
     this.btnPrintPreview.Click   += new System.EventHandler(this.btnPrintPreview_Click);
     //
     // btnPrint
     //
     this.btnPrint.Location = new System.Drawing.Point(160, 45);
     this.btnPrint.Name     = "btnPrint";
     this.btnPrint.Size     = new System.Drawing.Size(60, 26);
     this.btnPrint.TabIndex = 6;
     this.btnPrint.Text     = "打  印";
     this.btnPrint.Click   += new System.EventHandler(this.btnPrint_Click);
     //
     // cbxMappingType
     //
     this.cbxMappingType.Items.AddRange(new object[] {
         "esriPageMappingScale",
         "esriPageMappingTile",
         "esriPageMappingCrop"
     });
     this.cbxMappingType.Location = new System.Drawing.Point(535, 45);
     this.cbxMappingType.Name     = "cbxMappingType";
     this.cbxMappingType.Size     = new System.Drawing.Size(180, 20);
     this.cbxMappingType.TabIndex = 8;
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Location = new System.Drawing.Point(10, 78);
     this.axPageLayoutControl1.Name     = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size     = new System.Drawing.Size(705, 520);
     this.axPageLayoutControl1.TabIndex = 9;
     //
     // lblPrinter
     //
     this.lblPrinter.AutoSize = true;
     this.lblPrinter.Location = new System.Drawing.Point(404, 21);
     this.lblPrinter.Name     = "lblPrinter";
     this.lblPrinter.Size     = new System.Drawing.Size(125, 12);
     this.lblPrinter.TabIndex = 10;
     this.lblPrinter.Text     = "选择打印机对象类型:";
     //
     // cbxPrinterType
     //
     this.cbxPrinterType.FormattingEnabled = true;
     this.cbxPrinterType.Items.AddRange(new object[] {
         "EmfPrinter",
         "ArcPressPrinter",
         "PsPrinter"
     });
     this.cbxPrinterType.Location              = new System.Drawing.Point(535, 16);
     this.cbxPrinterType.Name                  = "cbxPrinterType";
     this.cbxPrinterType.Size                  = new System.Drawing.Size(180, 20);
     this.cbxPrinterType.TabIndex              = 11;
     this.cbxPrinterType.SelectedIndexChanged += new System.EventHandler(this.cbxPrinterType_SelectedIndexChanged);
     //
     // lblMapping
     //
     this.lblMapping.AutoSize = true;
     this.lblMapping.Location = new System.Drawing.Point(356, 50);
     this.lblMapping.Name     = "lblMapping";
     this.lblMapping.Size     = new System.Drawing.Size(173, 12);
     this.lblMapping.TabIndex = 10;
     this.lblMapping.Text     = "选择地图页面与纸张映射关系:";
     //
     // axToolbarControl1
     //
     this.axToolbarControl1.Location = new System.Drawing.Point(10, 10);
     this.axToolbarControl1.Name     = "axToolbarControl1";
     this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
     this.axToolbarControl1.Size     = new System.Drawing.Size(374, 28);
     this.axToolbarControl1.TabIndex = 12;
     //
     // PrintActiveview
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.BackColor         = System.Drawing.SystemColors.Control;
     this.ClientSize        = new System.Drawing.Size(726, 609);
     this.Controls.Add(this.axToolbarControl1);
     this.Controls.Add(this.cbxPrinterType);
     this.Controls.Add(this.lblMapping);
     this.Controls.Add(this.lblPrinter);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.cbxMappingType);
     this.Controls.Add(this.btnPrint);
     this.Controls.Add(this.btnPrintPreview);
     this.Controls.Add(this.btnPageSetup);
     this.Controls.Add(this.btnOpenFile);
     this.Name  = "PrintActiveview";
     this.Text  = "打印视图";
     this.Load += new System.EventHandler(this.PrintActiveView_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl();
			this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.button1 = new System.Windows.Forms.Button();
			this.axTOCControl1 = new ESRI.ArcGIS.Controls.AxTOCControl();
			this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl();
			((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
			this.SuspendLayout();
			// 
			// axToolbarControl1
			// 
			this.axToolbarControl1.Location = new System.Drawing.Point(8, 8);
			this.axToolbarControl1.Name = "axToolbarControl1";
			this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
			this.axToolbarControl1.Size = new System.Drawing.Size(392, 28);
			this.axToolbarControl1.TabIndex = 0;
			// 
			// axPageLayoutControl1
			// 
			this.axPageLayoutControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.axPageLayoutControl1.Location = new System.Drawing.Point(192, 40);
			this.axPageLayoutControl1.Name = "axPageLayoutControl1";
			this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
			this.axPageLayoutControl1.Size = new System.Drawing.Size(464, 384);
			this.axPageLayoutControl1.TabIndex = 1;
			this.axPageLayoutControl1.OnPageLayoutReplaced += new ESRI.ArcGIS.Controls.IPageLayoutControlEvents_Ax_OnPageLayoutReplacedEventHandler(this.axPageLayoutControl1_OnPageLayoutReplaced);
			// 
			// comboBox1
			// 
			this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.comboBox1.Location = new System.Drawing.Point(408, 8);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(121, 21);
			this.comboBox1.TabIndex = 3;
			this.comboBox1.Text = "comboBox1";
			// 
			// button1
			// 
			this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.button1.Location = new System.Drawing.Point(536, 8);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(120, 23);
			this.button1.TabIndex = 4;
			this.button1.Text = "Change Color Ramp";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// axTOCControl1
			// 
			this.axTOCControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left)));
			this.axTOCControl1.Location = new System.Drawing.Point(8, 40);
			this.axTOCControl1.Name = "axTOCControl1";
			this.axTOCControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTOCControl1.OcxState")));
			this.axTOCControl1.Size = new System.Drawing.Size(176, 384);
			this.axTOCControl1.TabIndex = 5;
			// 
			// axLicenseControl1
			// 
			this.axLicenseControl1.Enabled = true;
			this.axLicenseControl1.Location = new System.Drawing.Point(176, 216);
			this.axLicenseControl1.Name = "axLicenseControl1";
			this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
			this.axLicenseControl1.Size = new System.Drawing.Size(32, 32);
			this.axLicenseControl1.TabIndex = 6;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(664, 430);
			this.Controls.Add(this.axLicenseControl1);
			this.Controls.Add(this.axTOCControl1);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.comboBox1);
			this.Controls.Add(this.axPageLayoutControl1);
			this.Controls.Add(this.axToolbarControl1);
			this.Name = "Form1";
			this.Text = "Color Ramps";
			this.Load += new System.EventHandler(this.Form1_Load);
			((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
			this.ResumeLayout(false);

		}
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExportActiveView));
     this.btnOpenFile          = new System.Windows.Forms.Button();
     this.btnPrint             = new System.Windows.Forms.Button();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.axToolbarControl1    = new ESRI.ArcGIS.Controls.AxToolbarControl();
     this.txtResolution        = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.btnOutputFile   = new System.Windows.Forms.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.cbxOutputType   = new System.Windows.Forms.ComboBox();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.label3          = new System.Windows.Forms.Label();
     this.textBox1        = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
     this.SuspendLayout();
     //
     // btnOpenFile
     //
     this.btnOpenFile.Location = new System.Drawing.Point(625, 43);
     this.btnOpenFile.Name     = "btnOpenFile";
     this.btnOpenFile.Size     = new System.Drawing.Size(88, 22);
     this.btnOpenFile.TabIndex = 1;
     this.btnOpenFile.Text     = "其他地图文档";
     this.btnOpenFile.Click   += new System.EventHandler(this.btnOpenFile_Click);
     //
     // btnPrint
     //
     this.btnPrint.Location = new System.Drawing.Point(625, 73);
     this.btnPrint.Name     = "btnPrint";
     this.btnPrint.Size     = new System.Drawing.Size(88, 22);
     this.btnPrint.TabIndex = 6;
     this.btnPrint.Text     = "文件输出";
     this.btnPrint.Click   += new System.EventHandler(this.btnPrint_Click);
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Location = new System.Drawing.Point(10, 111);
     this.axPageLayoutControl1.Name     = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size     = new System.Drawing.Size(705, 520);
     this.axPageLayoutControl1.TabIndex = 9;
     //
     // axToolbarControl1
     //
     this.axToolbarControl1.Location = new System.Drawing.Point(10, 10);
     this.axToolbarControl1.Name     = "axToolbarControl1";
     this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
     this.axToolbarControl1.Size     = new System.Drawing.Size(398, 28);
     this.axToolbarControl1.TabIndex = 12;
     //
     // txtResolution
     //
     this.txtResolution.Location = new System.Drawing.Point(291, 43);
     this.txtResolution.Name     = "txtResolution";
     this.txtResolution.Size     = new System.Drawing.Size(75, 21);
     this.txtResolution.TabIndex = 24;
     this.txtResolution.Text     = "300";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(232, 46);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(53, 12);
     this.label2.TabIndex = 23;
     this.label2.Text     = "分辨率:";
     //
     // btnOutputFile
     //
     this.btnOutputFile.Location = new System.Drawing.Point(530, 73);
     this.btnOutputFile.Name     = "btnOutputFile";
     this.btnOutputFile.Size     = new System.Drawing.Size(74, 22);
     this.btnOutputFile.TabIndex = 22;
     this.btnOutputFile.Text     = "浏览...";
     this.btnOutputFile.UseVisualStyleBackColor = true;
     this.btnOutputFile.Click += new System.EventHandler(this.btnOutputFile_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(9, 46);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(89, 12);
     this.label1.TabIndex = 19;
     this.label1.Text     = "选择输出类型:";
     //
     // cbxOutputType
     //
     this.cbxOutputType.FormattingEnabled = true;
     this.cbxOutputType.Items.AddRange(new object[] {
         "ExportJPEG",
         "ExportBMP",
         "ExportGIF",
         "ExportPNG",
         "ExportTIFF",
         "ExportAI",
         "ExportEMF",
         "ExportPDF",
         "ExportPS",
         "ExportSVG"
     });
     this.cbxOutputType.Location              = new System.Drawing.Point(104, 43);
     this.cbxOutputType.Name                  = "cbxOutputType";
     this.cbxOutputType.Size                  = new System.Drawing.Size(114, 20);
     this.cbxOutputType.TabIndex              = 15;
     this.cbxOutputType.Text                  = "ExportJPEG";
     this.cbxOutputType.SelectedIndexChanged += new System.EventHandler(this.cbxOutputType_SelectedIndexChanged);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(9, 77);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(125, 12);
     this.label3.TabIndex = 19;
     this.label3.Text     = "输出文件位置及文件:";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(140, 74);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(367, 21);
     this.textBox1.TabIndex = 25;
     //
     // ExportActiveView
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.BackColor         = System.Drawing.SystemColors.Control;
     this.ClientSize        = new System.Drawing.Size(725, 643);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.btnOutputFile);
     this.Controls.Add(this.txtResolution);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.axToolbarControl1);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.cbxOutputType);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnPrint);
     this.Controls.Add(this.btnOpenFile);
     this.Name  = "ExportActiveView";
     this.Text  = "地图的转换输出";
     this.Load += new System.EventHandler(this.ExportActiveView_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            this.txtPath = new System.Windows.Forms.TextBox();
            this.cmdLoadDoc = new System.Windows.Forms.Button();
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
            this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl();
            ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
            this.SuspendLayout();
            // 
            // txtPath
            // 
            this.txtPath.Enabled = false;
            this.txtPath.Location = new System.Drawing.Point(8, 40);
            this.txtPath.Name = "txtPath";
            this.txtPath.Size = new System.Drawing.Size(352, 20);
            this.txtPath.TabIndex = 1;
            // 
            // cmdLoadDoc
            // 
            this.cmdLoadDoc.Location = new System.Drawing.Point(232, 8);
            this.cmdLoadDoc.Name = "cmdLoadDoc";
            this.cmdLoadDoc.Size = new System.Drawing.Size(128, 24);
            this.cmdLoadDoc.TabIndex = 2;
            this.cmdLoadDoc.Text = "Load Map Document";
            this.cmdLoadDoc.Click += new System.EventHandler(this.cmdLoadDoc_Click);
            // 
            // axPageLayoutControl1
            // 
            this.axPageLayoutControl1.Location = new System.Drawing.Point(8, 64);
            this.axPageLayoutControl1.Name = "axPageLayoutControl1";
            this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
            this.axPageLayoutControl1.Size = new System.Drawing.Size(352, 368);
            this.axPageLayoutControl1.TabIndex = 3;
            // 
            // axLicenseControl1
            // 
            this.axLicenseControl1.Enabled = true;
            this.axLicenseControl1.Location = new System.Drawing.Point(8, 2);
            this.axLicenseControl1.Name = "axLicenseControl1";
            this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
            this.axLicenseControl1.Size = new System.Drawing.Size(32, 32);
            this.axLicenseControl1.TabIndex = 4;
            // 
            // frmMain
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(368, 438);
            this.Controls.Add(this.axLicenseControl1);
            this.Controls.Add(this.axPageLayoutControl1);
            this.Controls.Add(this.cmdLoadDoc);
            this.Controls.Add(this.txtPath);
            this.Name = "frmMain";
            this.Text = "Load Map Document";
            ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

		}
Esempio n. 9
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.axToolbarControl1    = new ESRI.ArcGIS.Controls.AxToolbarControl();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.comboBox1            = new System.Windows.Forms.ComboBox();
     this.button1           = new System.Windows.Forms.Button();
     this.axTOCControl1     = new ESRI.ArcGIS.Controls.AxTOCControl();
     this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
     this.SuspendLayout();
     //
     // axToolbarControl1
     //
     this.axToolbarControl1.Location = new System.Drawing.Point(8, 8);
     this.axToolbarControl1.Name     = "axToolbarControl1";
     this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
     this.axToolbarControl1.Size     = new System.Drawing.Size(392, 28);
     this.axToolbarControl1.TabIndex = 0;
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.axPageLayoutControl1.Location              = new System.Drawing.Point(192, 40);
     this.axPageLayoutControl1.Name                  = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState              = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size                  = new System.Drawing.Size(464, 384);
     this.axPageLayoutControl1.TabIndex              = 1;
     this.axPageLayoutControl1.OnPageLayoutReplaced += new ESRI.ArcGIS.Controls.IPageLayoutControlEvents_Ax_OnPageLayoutReplacedEventHandler(this.axPageLayoutControl1_OnPageLayoutReplaced);
     //
     // comboBox1
     //
     this.comboBox1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBox1.Location = new System.Drawing.Point(408, 8);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(121, 21);
     this.comboBox1.TabIndex = 3;
     this.comboBox1.Text     = "comboBox1";
     //
     // button1
     //
     this.button1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Location = new System.Drawing.Point(536, 8);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(120, 23);
     this.button1.TabIndex = 4;
     this.button1.Text     = "Change Color Ramp";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // axTOCControl1
     //
     this.axTOCControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)));
     this.axTOCControl1.Location = new System.Drawing.Point(8, 40);
     this.axTOCControl1.Name     = "axTOCControl1";
     this.axTOCControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTOCControl1.OcxState")));
     this.axTOCControl1.Size     = new System.Drawing.Size(176, 384);
     this.axTOCControl1.TabIndex = 5;
     //
     // axLicenseControl1
     //
     this.axLicenseControl1.Enabled  = true;
     this.axLicenseControl1.Location = new System.Drawing.Point(176, 216);
     this.axLicenseControl1.Name     = "axLicenseControl1";
     this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
     this.axLicenseControl1.Size     = new System.Drawing.Size(32, 32);
     this.axLicenseControl1.TabIndex = 6;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(664, 430);
     this.Controls.Add(this.axLicenseControl1);
     this.Controls.Add(this.axTOCControl1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.axToolbarControl1);
     this.Name  = "Form1";
     this.Text  = "Color Ramps";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintAndExport));
     this.btnOpenFile          = new System.Windows.Forms.Button();
     this.btnPrint             = new System.Windows.Forms.Button();
     this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
     this.axToolbarControl1    = new ESRI.ArcGIS.Controls.AxToolbarControl();
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.outputPath           = new System.Windows.Forms.Label();
     this.btnOutputFile        = new System.Windows.Forms.Button();
     this.btnPrintPreview      = new System.Windows.Forms.Button();
     this.btnPageSetup         = new System.Windows.Forms.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.cbxMappingType  = new System.Windows.Forms.ComboBox();
     this.lblMapping      = new System.Windows.Forms.Label();
     this.rdoOutput       = new System.Windows.Forms.RadioButton();
     this.rdoPrint        = new System.Windows.Forms.RadioButton();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // btnOpenFile
     //
     this.btnOpenFile.Location = new System.Drawing.Point(563, 85);
     this.btnOpenFile.Name     = "btnOpenFile";
     this.btnOpenFile.Size     = new System.Drawing.Size(88, 26);
     this.btnOpenFile.TabIndex = 1;
     this.btnOpenFile.Text     = "其他地图文档";
     this.btnOpenFile.Click   += new System.EventHandler(this.btnOpenFile_Click);
     //
     // btnPrint
     //
     this.btnPrint.Location = new System.Drawing.Point(563, 25);
     this.btnPrint.Name     = "btnPrint";
     this.btnPrint.Size     = new System.Drawing.Size(88, 25);
     this.btnPrint.TabIndex = 6;
     this.btnPrint.Text     = "打印/输出";
     this.btnPrint.Click   += new System.EventHandler(this.btnPrint_Click);
     //
     // axPageLayoutControl1
     //
     this.axPageLayoutControl1.Location = new System.Drawing.Point(10, 115);
     this.axPageLayoutControl1.Name     = "axPageLayoutControl1";
     this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
     this.axPageLayoutControl1.Size     = new System.Drawing.Size(679, 476);
     this.axPageLayoutControl1.TabIndex = 9;
     //
     // axToolbarControl1
     //
     this.axToolbarControl1.Location = new System.Drawing.Point(10, 10);
     this.axToolbarControl1.Name     = "axToolbarControl1";
     this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState")));
     this.axToolbarControl1.Size     = new System.Drawing.Size(321, 28);
     this.axToolbarControl1.TabIndex = 12;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.btnOutputFile);
     this.groupBox1.Controls.Add(this.outputPath);
     this.groupBox1.Controls.Add(this.btnPageSetup);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.cbxMappingType);
     this.groupBox1.Controls.Add(this.lblMapping);
     this.groupBox1.Controls.Add(this.rdoOutput);
     this.groupBox1.Controls.Add(this.rdoPrint);
     this.groupBox1.Location = new System.Drawing.Point(10, 37);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(522, 73);
     this.groupBox1.TabIndex = 15;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "打印/输出";
     //
     // outputPath
     //
     this.outputPath.AutoSize = true;
     this.outputPath.Font     = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.outputPath.Location = new System.Drawing.Point(159, 51);
     this.outputPath.Name     = "outputPath";
     this.outputPath.Size     = new System.Drawing.Size(21, 14);
     this.outputPath.TabIndex = 23;
     this.outputPath.Text     = "无";
     //
     // btnOutputFile
     //
     this.btnOutputFile.BackColor = System.Drawing.Color.White;
     this.btnOutputFile.Location  = new System.Drawing.Point(429, 46);
     this.btnOutputFile.Name      = "btnOutputFile";
     this.btnOutputFile.Size      = new System.Drawing.Size(87, 22);
     this.btnOutputFile.TabIndex  = 22;
     this.btnOutputFile.Text      = "选择输出路径";
     this.btnOutputFile.UseVisualStyleBackColor = false;
     this.btnOutputFile.Click += new System.EventHandler(this.btnOutputFile_Click);
     //
     // btnPrintPreview
     //
     this.btnPrintPreview.Location = new System.Drawing.Point(563, 56);
     this.btnPrintPreview.Name     = "btnPrintPreview";
     this.btnPrintPreview.Size     = new System.Drawing.Size(88, 26);
     this.btnPrintPreview.TabIndex = 21;
     this.btnPrintPreview.Text     = "打印预览";
     this.btnPrintPreview.Click   += new System.EventHandler(this.btnPrintPreview_Click);
     //
     // btnPageSetup
     //
     this.btnPageSetup.Location = new System.Drawing.Point(429, 13);
     this.btnPageSetup.Name     = "btnPageSetup";
     this.btnPageSetup.Size     = new System.Drawing.Size(87, 26);
     this.btnPageSetup.TabIndex = 20;
     this.btnPageSetup.Text     = "页面设置";
     this.btnPageSetup.Click   += new System.EventHandler(this.btnPageSetup_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(75, 51);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(65, 12);
     this.label1.TabIndex = 19;
     this.label1.Text     = "输出路径:";
     //
     // cbxMappingType
     //
     this.cbxMappingType.Items.AddRange(new object[] {
         "esriPageMappingScale",
         "esriPageMappingTile",
         "esriPageMappingCrop"
     });
     this.cbxMappingType.Location = new System.Drawing.Point(161, 14);
     this.cbxMappingType.Name     = "cbxMappingType";
     this.cbxMappingType.Size     = new System.Drawing.Size(171, 20);
     this.cbxMappingType.TabIndex = 18;
     //
     // lblMapping
     //
     this.lblMapping.AutoSize = true;
     this.lblMapping.Location = new System.Drawing.Point(73, 20);
     this.lblMapping.Name     = "lblMapping";
     this.lblMapping.Size     = new System.Drawing.Size(89, 12);
     this.lblMapping.TabIndex = 16;
     this.lblMapping.Text     = "选择映射关系:";
     //
     // rdoOutput
     //
     this.rdoOutput.AutoSize = true;
     this.rdoOutput.Location = new System.Drawing.Point(25, 47);
     this.rdoOutput.Name     = "rdoOutput";
     this.rdoOutput.Size     = new System.Drawing.Size(47, 16);
     this.rdoOutput.TabIndex = 1;
     this.rdoOutput.Text     = "输出";
     this.rdoOutput.UseVisualStyleBackColor = true;
     //
     // rdoPrint
     //
     this.rdoPrint.AutoSize                = true;
     this.rdoPrint.Checked                 = true;
     this.rdoPrint.Location                = new System.Drawing.Point(25, 19);
     this.rdoPrint.Name                    = "rdoPrint";
     this.rdoPrint.Size                    = new System.Drawing.Size(47, 16);
     this.rdoPrint.TabIndex                = 0;
     this.rdoPrint.TabStop                 = true;
     this.rdoPrint.Text                    = "打印";
     this.rdoPrint.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.rdoPrint.UseVisualStyleBackColor = true;
     //
     // PrintAndExport
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(709, 599);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.axToolbarControl1);
     this.Controls.Add(this.btnPrintPreview);
     this.Controls.Add(this.axPageLayoutControl1);
     this.Controls.Add(this.btnPrint);
     this.Controls.Add(this.btnOpenFile);
     this.Name  = "PrintAndExport";
     this.Text  = "地图的打印与转换输出";
     this.Load += new System.EventHandler(this.PrintActiveView_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
      System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
      this.button1 = new System.Windows.Forms.Button();
      this.button2 = new System.Windows.Forms.Button();
      this.button3 = new System.Windows.Forms.Button();
      this.button4 = new System.Windows.Forms.Button();
      this.comboBox1 = new System.Windows.Forms.ComboBox();
      this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl();
      this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl();
      ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit();
      ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit();
      this.SuspendLayout();
      // 
      // button1
      // 
      this.button1.Location = new System.Drawing.Point(8, 8);
      this.button1.Name = "button1";
      this.button1.Size = new System.Drawing.Size(88, 24);
      this.button1.TabIndex = 1;
      this.button1.Text = "Open File";
      this.button1.Click += new System.EventHandler(this.button1_Click);
      // 
      // button2
      // 
      this.button2.Location = new System.Drawing.Point(112, 8);
      this.button2.Name = "button2";
      this.button2.Size = new System.Drawing.Size(88, 24);
      this.button2.TabIndex = 4;
      this.button2.Text = "Page Setup";
      this.button2.Click += new System.EventHandler(this.button2_Click);
      // 
      // button3
      // 
      this.button3.Location = new System.Drawing.Point(216, 8);
      this.button3.Name = "button3";
      this.button3.Size = new System.Drawing.Size(88, 24);
      this.button3.TabIndex = 5;
      this.button3.Text = "Print Preview";
      this.button3.Click += new System.EventHandler(this.button3_Click);
      // 
      // button4
      // 
      this.button4.Location = new System.Drawing.Point(320, 8);
      this.button4.Name = "button4";
      this.button4.Size = new System.Drawing.Size(88, 24);
      this.button4.TabIndex = 6;
      this.button4.Text = "Print";
      this.button4.Click += new System.EventHandler(this.button4_Click);
      // 
      // comboBox1
      // 
      this.comboBox1.Location = new System.Drawing.Point(424, 8);
      this.comboBox1.Name = "comboBox1";
      this.comboBox1.Size = new System.Drawing.Size(144, 21);
      this.comboBox1.TabIndex = 8;
      // 
      // axPageLayoutControl1
      // 
      this.axPageLayoutControl1.Location = new System.Drawing.Point(0, 48);
      this.axPageLayoutControl1.Name = "axPageLayoutControl1";
      this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState")));
      this.axPageLayoutControl1.Size = new System.Drawing.Size(680, 520);
      this.axPageLayoutControl1.TabIndex = 9;
      // 
      // axLicenseControl1
      // 
      this.axLicenseControl1.Enabled = true;
      this.axLicenseControl1.Location = new System.Drawing.Point(512, 88);
      this.axLicenseControl1.Name = "axLicenseControl1";
      this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));
      this.axLicenseControl1.Size = new System.Drawing.Size(32, 32);
      this.axLicenseControl1.TabIndex = 10;
      // 
      // Form1
      // 
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(680, 566);
      this.Controls.Add(this.axLicenseControl1);
      this.Controls.Add(this.axPageLayoutControl1);
      this.Controls.Add(this.comboBox1);
      this.Controls.Add(this.button4);
      this.Controls.Add(this.button3);
      this.Controls.Add(this.button2);
      this.Controls.Add(this.button1);
      this.Name = "Form1";
      this.Text = "Print Preview / Print dialog Sample";
      this.Load += new System.EventHandler(this.Form1_Load);
      ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit();
      ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit();
      this.ResumeLayout(false);

    }