Fork me on GitHub

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;
        }
posted @ 2012-05-30 22:22  逍遥メ风  阅读(544)  评论(0编辑  收藏  举报