예제 #1
0
        public void axTOCControl1_OnBeginLabelEdit(object sender, ITOCControlEvents_OnBeginLabelEditEvent e)
        {
            ITOCControl        m_TOCControl;
            IBasicMap          map   = null;
            object             other = null;
            object             index = null;
            esriTOCControlItem item  = esriTOCControlItem.esriTOCControlItemNone;

            m_TOCControl = axTOCControl1.Object as ITOCControl;
            m_TOCControl.HitTest(e.x, e.y, ref item, ref map, ref layer, ref other, ref index);
            if (item != esriTOCControlItem.esriTOCControlItemLayer)
            {
                e.canEdit = false;
            }
        }
예제 #2
0
 private void axTOCControl1_OnBeginLabelEdit(object sender, ITOCControlEvents_OnBeginLabelEditEvent e)
 {
     e.canEdit = false;
 }
예제 #3
0
 private void TocControl_OnBeginLabelEdit(object sender, ITOCControlEvents_OnBeginLabelEditEvent e)
 {
     e.canEdit = false;
 }