clearsky1973
路人甲
路人甲
  • 注册日期2004-03-03
  • 发帖数16
  • QQ
  • 铜币150枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1218回复:1

属性标注

楼主#
更多 发布于:2004-12-11 17:58
请问,如何在arcEngine开发中对某一个shape文件的字段属性进行标注?
喜欢0 评分0
wavvylia
路人甲
路人甲
  • 注册日期2003-07-28
  • 发帖数384
  • QQ
  • 铜币555枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2004-12-14 08:46
<P>你看这个过程能行吗?</P><P>Public Sub LabelField(Player As IFeatureLayer)</P><P>   Dim pFLayer As IGeoFeatureLayer
   Set pFLayer = Player
  
   Dim pAnoLayPC As IAnnotateLayerPropertiesCollection
   Dim pAnnoLayerProps As ILabelEngineLayerProperties
    
   Set pAnoLayPC = pFLayer.AnnotationProperties
   pAnoLayPC.QueryItem 0, pAnnoLayerProps, Nothing, Nothing
    
   pAnnoLayerProps.Expression = "NAME"
    
   pFLayer.DisplayField = "NAME"
   pFLayer.DisplayAnnotation = True
End Sub
</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部