public void HitTest ( int X, int Y, ref esriTOCControlItem ItemType, ref IBasicMap BasicMap, ref ILayer Layer, ref object Unk, ref object Data );

各参数的含义如下:

X,Y :鼠标点击的坐标;

ITemType: esriTOCControlItem枚举常量

BasicMap:绑定MapControl的IBasicMap接口

Layer:被点击的图层

Unk:TOCControl的LegendGroup对象

Data:LegendClass在LegendGroup中的Index。

 

esriTOCControlItem枚举常量用于描述TocControl上的Item的类型,其定义如下:

esriTOCControlItemNone      0      没有对象

esriTOCControlItemMap        1      Map对象

esriTOCControlItemLayer      2      Layer对象

esriTOCControlItemHeading      3      对象的标题

esriTOCControlItemLegendClass   4      LegendClass对象

相关文章:

  • 2021-06-17
  • 2021-12-08
  • 2021-11-09
  • 2021-08-30
  • 2022-12-23
  • 2021-11-02
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2022-01-20
  • 2021-06-06
  • 2022-12-23
  • 2021-09-08
  • 2022-02-06
相关资源
相似解决方案