在MapControl控件中右击事件添加系统自带的命令
摘要:private IToolbarMenu m_menuMap = null;//全局变量private IMapControl3 m_mapControl = null;主窗体Load事件中加入: m_mapControl = (IMapControl3)this.axMapControl1.Object; m_menuMap = new ToolbarMenuClass();//ICommand命令m_menuMap.AddItem( new ControlsMapFullExtentCommand(), -1, 0, false, esriCommandStyles....
阅读全文
posted @
2012-05-30 23:50
jin_qi_er
阅读(715)
推荐(0)
arcengine 画多边形
摘要:private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e) {IRgbColor pRgbColor; IActiveView pActiveView; IRubberBand pRubberBand; IElement pElement; IGraphicsContainer pGraphicsContainer;//起到容...
阅读全文
posted @
2012-05-30 08:46
jin_qi_er
阅读(977)
推荐(0)
arcengine 画线
摘要:private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e){ ILineElement pLineElement;IActiveView pActiveView;IRgbColor pRgbColor; IRubberBand pRubberBand; ISimpleLineSymbol pSimpleLineSymbol; IPolyline p...
阅读全文
posted @
2012-05-30 08:19
jin_qi_er
阅读(559)
推荐(0)
Arcengine画点的代码
摘要:private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e) {IElement pElement; IMarkerElement pMarkerElement; ISimpleMarkerSymbol pSimpleMarkerSymbol;IRgbColor pRgbColor; pSimpleMa...
阅读全文
posted @
2012-05-30 08:17
jin_qi_er
阅读(308)
推荐(0)