使用C#创建简单的Arc GIS命令 [英] Creating a simple Arc GIS command using C#
问题描述
我一直在学习使用C#运行弧形命令,并且一直遵循着 http://edndoc.esri.com/arcobjects/9.1/ArcGISDevHelp/DevelopmentEnvs/DotNet/walkthrough1cs.htm [
提前谢谢.
[edit]链接已链接-OriginalGriff [/edit]
Hi,
I have been learning to run arc commands using C# and have been following this walk through http://edndoc.esri.com/arcobjects/9.1/ArcGISDevHelp/DevelopmentEnvs/DotNet/walkthrough1cs.htm[^] . When they are talking about implementing the ICommand interface, they go to the ICommand interface, right click and click add and then click implement interface. When I am right clicking the ICommand interface, I am not getting the add option.Is this because the walkthrough is on a older version or am I making a mistake??
Thanks in advance.
[edit]Link linkified - OriginalGriff[/edit]
推荐答案
很可能是针对旧版本的.当然,它似乎在我的VS2008中不起作用.还有两种轻松实现此目标的方法:
1)键入接口名称时:
It''s proablly that it is for an older version. Certainly, it doesn''t seem to work in my VS2008. There are two other ways to do it easily:
1) When you type the interface name:
public class ZoomIn : ICommand
第一个字母下方将出现一个小的蓝色矩形.将鼠标移到该鼠标上,然后单击下拉菜单.
2)在类声明中右键单击接口名称:在出现的菜单上实现它.
A small blue rectangle will appear under the first letter. Move the mouse over that and click the drop down.
2) Right click the interface name in the class declaration: Implement it on the menu that appears.
这篇关于使用C#创建简单的Arc GIS命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!