C#-ArcEngine 图层属性查询的部分代码
private AxMapControl m_MapCtl;ILayer pLayer=m_MapCtl.get_Layer(0);IFeatureLayer pFLayer=pLayer as IFeatureLayer;//as 起到什么作用? IFeatureClass pFC = pFLayer.FeatureCl... 展开
其他答案
首先as是类型转换的意思,是引用类型的显示转换,一楼说的很详细了。ILayer、IFeatureLayer、IFeatureClass 、IFeatureCursor都不是普通类,你见过类前面有I吗??呵呵,这些都是接口,把msdn上ILayer的介绍你看下:Provides access to members that work with all layers. Note: the ILayer 展开
2010-12-17 14:05
来自北京市
赞(1)点赞赞(1)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




