コード例 #1
0
ファイル: Form1.cs プロジェクト: SteveStrong/visioTesting
 public Form1()
 {
     InitializeComponent();
     m_ovControl = axDrawingControl1;
     ultraTextEditor1.AcceptsReturn = true;
     m_ovControl.PageAdded         += AxDrawingControl1_PageAdded;
 }
コード例 #2
0
 public void InitializeComponent()
 {
     this.pictureBox1       = new System.Windows.Forms.PictureBox();
     this.mainMap           = new AxControls.Map();
     this.axDrawingControl1 = new AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor = System.Drawing.Color.White;
     this.pictureBox1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.pictureBox1.Image     = global::AxControls.Properties.Resources.ДлительнаяОперация48;
     this.pictureBox1.Location  = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name      = "pictureBox1";
     this.pictureBox1.Size      = new System.Drawing.Size(907, 589);
     this.pictureBox1.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex  = 1;
     this.pictureBox1.TabStop   = false;
     //
     // mainMap
     //
     this.mainMap.BackColor             = System.Drawing.SystemColors.Control;
     this.mainMap.Bearing               = 0F;
     this.mainMap.CanDragMap            = true;
     this.mainMap.Cursor                = System.Windows.Forms.Cursors.Default;
     this.mainMap.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.mainMap.EmptyTileColor        = System.Drawing.Color.Navy;
     this.mainMap.GrayScaleMode         = false;
     this.mainMap.HelperLineOption      = HelperLineOptions.DontShow;
     this.mainMap.LevelsKeepInMemmory   = 5;
     this.mainMap.Location              = new System.Drawing.Point(0, 0);
     this.mainMap.MarkersEnabled        = true;
     this.mainMap.MaxZoom               = 17;
     this.mainMap.MinZoom               = 2;
     this.mainMap.MouseWheelZoomEnabled = true;
     this.mainMap.MouseWheelZoomType    = MouseWheelZoomType.MousePositionAndCenter;
     this.mainMap.Name                  = "mainMap";
     this.mainMap.NegativeMode          = false;
     this.mainMap.PolygonsEnabled       = true;
     this.mainMap.RetryLoadTile         = 0;
     this.mainMap.RoutesEnabled         = true;
     this.mainMap.ScaleMode             = ScaleModes.Integer;
     this.mainMap.SelectedAreaFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)(((byte)(105)))), ((int)(((byte)(225)))));
     this.mainMap.ShowTileGridLines     = false;
     this.mainMap.Size                  = new System.Drawing.Size(907, 589);
     this.mainMap.TabIndex              = 2;
     this.mainMap.Zoom                  = 0D;
     //
     // axDrawingControl1
     //
     this.axDrawingControl1.BackColor        = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
     this.axDrawingControl1.CausesValidation = false;
     this.axDrawingControl1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.axDrawingControl1.Enabled          = true;
     this.axDrawingControl1.Location         = new System.Drawing.Point(0, 0);
     this.axDrawingControl1.Name             = "axDrawingControl1";
     this.axDrawingControl1.Size             = new System.Drawing.Size(907, 589);
     this.axDrawingControl1.TabIndex         = 0;
     //
     // AxProxyVisio
     //
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.mainMap);
     this.Controls.Add(this.axDrawingControl1);
     this.Cursor = System.Windows.Forms.Cursors.Arrow;
     this.Name   = "AxProxyVisio";
     this.Size   = new System.Drawing.Size(907, 589);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();
     this.ResumeLayout(false);
 }