/// <summary> /// Clone LayerNode /// </summary> /// <returns>LayerNode</returns> public override object Clone() { LayerNode aLN = new LayerNode((MapLayer)_mapLayer.Clone()); if (this.IsExpanded) { aLN.Expand(); } if (_legendNodes.Count > 0) { foreach (LegendNode aLegNode in _legendNodes) { aLN.LegendNodes.Add(aLegNode.Clone() as LegendNode); } } return(aLN); }
/// <summary> /// Add layer node /// </summary> /// <param name="aLayer">layer node</param> public void AddLayer(LayerNode aLayer) { _Layers.Add(aLayer); aLayer.GroupHandle = _GroupHandel; }
/// <summary> /// Insert layer node /// </summary> /// <param name="aLayer">layer node</param> /// <param name="index">index</param> public void InsertLayer(LayerNode aLayer, int index) { _Layers.Insert(index, aLayer); aLayer.GroupHandle = _GroupHandel; }
/// <summary> /// Get layer node index /// </summary> /// <param name="aLayer">layer node</param> /// <returns>index</returns> public int GetLayerIndex(LayerNode aLayer) { return(_Layers.IndexOf(aLayer)); }
/// <summary> /// Remove a layer node /// </summary> /// <param name="aLayer">layer node</param> public void RemoveLayer(LayerNode aLayer) { _Layers.Remove(aLayer); aLayer.GroupHandle = -1; }