C# ArcGIS Engine开发代码报错求助

错误 1 未能找到类型或命名空间名称“AfterDrawGeometry”(是否缺少 using 指令或程序集引用?) C:\Users\1\Desktop\MapApplication\MapApplication\DrawPolygon.cs 20 22 MapApplication

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Geometry;

namespace MapApplication
{
public class DrawPolygon
{
private IGeometry _polygon = null;
private INewPolygonFeedback _polyFeedback = null;
private IPoint _startPoint = null;
private IPoint _endPoint = null;

    private bool _drawStart = false;
    public event AfterDrawGeometry eventAfterDrawGeometry;

    protected AxMapControl myMapControl = null;
    protected ESRI.ArcGIS.Controls.IHookHelper myHook;

    public IGeometry Polygon
    {
        get { return _polygon; }
    }

    public override void OnCreate(object hook)
    {
        myHook.Hook = hook;
        if (myHook == null)
            myHook = new HookHelperClass();
    }


}

}

1个回答

DrawPolygon.cs这个文件的代码贴出来看看,缺少定义

如果只有这一个地方报错,自己补充下AfterDrawGeometry的委托定义看看。

weixin_44533004
weixin_44533004 放上面了 AfterDrawGeometry的using指令是什么呀
8 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐