美文网首页
二次开发控件

二次开发控件

作者: 时岑66 | 来源:发表于2019-05-19 23:12 被阅读0次

    TOCControl(目录树)控件

    不能单独使用,必须与伙伴控件协同使用
    与之相关联的伙伴控件有:
    MapControl,PageLayoutControl,ReaderControl,SceneControl,GlobeControl等。

    主要作用是:
    显示当前加载的图层有哪些、采用什么样的符号等,目的是使用户对当前加载的数据有一个总体的把握。

    axTOCControl.HitTest方法:
    Public void HitTest(
    int X,//当鼠标在TOCControl中按下时,参照TOCControl左上角为原点,以像素为单位,
    int Y, //同上,返回鼠标的y坐标
    ref esriTOCControlItem ItemType,//枚举常量
    ref IBasicMap BasicMap,//绑定MapControl中的IBasicMap对象
    ref ILayer Layer,//被点击的图层对象
    ref object Unk,//图例组对象
    ref object Data);//图例组中图例类的索引,根据索引和图例组可获得特定的图例类

    esriTOCControlItem枚举常量用于描述TocControl上的Item的类型,其定义如下:
    esriTOCControlItemNone      0      没有对象
    esriTOCControlItemMap       1      Map对象
    esriTOCControlItemLayer      2      Layer对象
    esriTOCControlItemHeading     3      对象的标题
    esriTOCControlItemLegendClass   4      LegendClass对象


    相关文章

      网友评论

          本文标题:二次开发控件

          本文链接:https://www.haomeiwen.com/subject/drpczqtx.html