/// <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); }