Ejemplo n.º 1
0
        public void ClearWithoutClosing()
        {
            int count = Count - 1;

            _mapControl.Lock();

            for (int i = Count - 1; i >= 0; i--)
            {
                int handle = _axMap.get_LayerHandle(i);
                if (handle != -1)
                {
                    _axMap.RemoveLayerWithoutClosing(handle);
                }
            }

            _mapControl.Unlock();
        }