使用以下三个Namespace:
using Esri.ArcGIS.Carto;
using Esri.ArcGIS.esriSystem;
using Esri.ArcGIS.SystemUI;
并且新建类,继承该接口,右键接口名选中实现接口,即可实现全部接口
public partial class Form1 : Form,ICommand
{
public Form1()
{
InitializeComponent();
}
{
public Form1()
{
InitializeComponent();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
}
{
}
public int Bitmap
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public string Caption
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public string Category
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public bool Checked
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public int HelpContextID
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public string HelpFile
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public string Message
{
get { throw new NotImplementedException(); }
}
{
get { throw new NotImplementedException(); }
}
public void OnClick()
{
throw new NotImplementedException();
}
{
throw new NotImplementedException();
}
public void OnCreate(object Hook)
{
throw new NotImplementedException();
}
{
throw new NotImplementedException();
}
public string Tooltip
{
get { throw new NotImplementedException(); }
}
}
{
get { throw new NotImplementedException(); }
}
}