get_AppliesToObject() public method

public get_AppliesToObject ( object pObject ) : bool
pObject object
return bool
Example #1
0
        private IElement GetSelectedPointElement()
        {
            IMap activeFrame = m_hookHelper.FocusMap;
            IGraphicsContainerSelect graphicsSel  = activeFrame as IGraphicsContainerSelect;
            IElement         selectedElement      = null;
            IAGAnimationType graphicAnimationType = new AnimationTypeMapGraphic();

            if (graphicsSel.ElementSelectionCount > 0)
            {
                IEnumElement enumElem = graphicsSel.SelectedElements;
                selectedElement = enumElem.Next();
                while (selectedElement != null)
                {
                    if (graphicAnimationType.get_AppliesToObject(selectedElement))
                    {
                        break;
                    }
                    selectedElement = enumElem.Next();
                }
            }
            else
            {
                selectedElement = null;
            }
            return(selectedElement);
        }
 private IElement GetSelectedPointElement()
 {
     IMap activeFrame = m_hookHelper.FocusMap;
     IGraphicsContainerSelect graphicsSel = activeFrame as IGraphicsContainerSelect;
     IElement selectedElement = null;
     IAGAnimationType graphicAnimationType = new AnimationTypeMapGraphic();
     if (graphicsSel.ElementSelectionCount > 0)
     {
         IEnumElement enumElem = graphicsSel.SelectedElements;
         selectedElement = enumElem.Next();
         while (selectedElement != null)
         {
             if (graphicAnimationType.get_AppliesToObject(selectedElement))
                 break;
             selectedElement = enumElem.Next();
         }
     }
     else
     {
         selectedElement = null;
     }
     return selectedElement;
 }