首页 > 其他 > 详细

TOCControl 的HitTest()方法

时间:2015-12-14 18:52:20      阅读:384      评论:0      收藏:0      [点我收藏+]

public void HitTest ( int X, int Y, ref esriTOCControlItem ItemType, ref IBasicMap BasicMap, ref ILayer Layer, refobject 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对象

TOCControl 的HitTest()方法

原文:http://www.cnblogs.com/zhaosaiblogs/p/5045994.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!