'假设pFLayer是一个有效的FeatureLayer对象,下面这两句代码是用默认的字段来标注。
pFLayer.DisplayField = "FID"
pFLayer.DisplayAnnotation = True
'假设pGLayer是一个有效的GeoFeatureLayer对象,下面的代码是把标注字段改为要素类的中第四个字段。
'注意:通过pFLayer.DisplayField 属性来改变标注字段是无效的。
Dim pAnnoLayerPropsColl As IAnnotateLayerPropertiesCollection
Set pAnnoLayerPropsColl = pGLayer.AnnotationProperties
pAnnoLayerPropsColl.Clear
' 创建一个新的 LabelEngineLayerProperties对象
Dim aLELayerProps As ILabelEngineLayerProperties
Set aLELayerProps = New LabelEngineLayerProperties
aLELayerProps.IsExpressionSimple = True
aLELayerProps.Expression = "[" & pFLayer.FeatureClass.Fields.Field(3).Name & "]"
pAnnoLayerPropsColl.Add aLELayerProps
'刷新
MapControl1.ActiveView.PartialRefresh esriViewGeography + esriViewGraphics, Nothing, Nothing |
相关推荐
ArcGIS Engine开发课程设计源码下载 ArcGIS Engine 开发 源码
ArcGIS Engine 是专门用于开发 GIS 系统的开发包,目前最新版本是9.3。基于 ArcGIS Engine,结合程序开发语言可以开发具有很强专业性的GIS系统。而且所开发的系统不需要客户端安装 ArcGIS软件,只需要安装 ArcGIS ...
《ArcGIS Engine开发从入门到精通》共4篇分18章,第一篇基础篇(第1~9章)集中介绍了 ArcGIS Engine基础知识,包括开发基础组件对象模型、ArcGIS Engine介绍、基于.NET的ArcGIS Engine的开发,ArcGIS Engine中的...
ArcGIS Engine 开发入门介绍 ArcGIS Engine开发入门介绍
ArcGIS Engine 开发技术ESRI官方代码
ArcGIS Engine开发实例教程,讲述AE开发具体实例的开发过程。
关于ArcGIS Engine开发过程中版本不一致问题的参考解决方案
Qt结合ArcGIS Engine 开发
详细介绍了如何在ArcGIS Engine开发中加载MDB中的数据, 带有C#开发的代码
详细讲解了ArcGIS Engine开发中的借口查询,对ArcGIS Engine开发有一定的帮助
ArcGIS Engine 开发手册,是利用.NET + ArcGIS Engine进行Arcgis 二次开发的入门教程。
开发实例,有助于arcgis engine初学者学习。
ArcGIS Engine 开发指南中文手册
ArcGIS Engine + C# 实例开发教程
arcgis engine C# 建模 开发
使用ArcGIS Engine 开发自定义GIS应用(esri资料)
custom applications using ArcGIS Engine. It will be of greatest use to developers who want to embed mapping and GIS functionality in custom applications. It provides an overview of ArcGIS Engine, its ...
这本书讲的很详细,对于想学习AE二次开发的同学很有帮助,我自己添加的书签,希望可以帮助同学们