/// <summary> /// Creates a shallow clone of the object. ChartStyle is cloned explicitly. /// </summary> /// <returns></returns> public object Clone() { var erg = (ChartData)MemberwiseClone(); erg.ChartStyle = (ChartStyle)ChartStyle.Clone(); return(erg); }