MAPX画线

private void toolStripButton11_Click(object sender, EventArgs e)
        {
            MapXLib.Style styleRegion = new MapXLib.StyleClass();
            styleRegion.PickRegion();
            axMap1.DefaultStyle = styleRegion;
            MapXLib.Layer lyr = axMap1.Layers[1];
            lyr.Editable = true;
            axMap1.Layers.InsertionLayer = lyr;
            axMap1.CurrentTool = MapXLib.ToolConstants.miAddRegionTool;
        }

        private void toolStripButton10_Click(object sender, EventArgs e)
        {
            MapXLib.Style stylePolyLine = new MapXLib.StyleClass();
            stylePolyLine.PickLine();
            axMap1.DefaultStyle = stylePolyLine;
            MapXLib.Layer lyr = axMap1.Layers[1];
            lyr.Editable = true;
            axMap1.Layers.InsertionLayer = lyr;
            axMap1.CurrentTool = MapXLib.ToolConstants.miAddPolylineTool;
        }
原文地址:https://www.cnblogs.com/bjxly/p/2527060.html