internal SLColorScale2010 ToSLColorScale2010() { SLColorScale2010 cs2010 = new SLColorScale2010(); foreach (SLConditionalFormatValueObject cfvo in this.Cfvos) { cs2010.Cfvos.Add(cfvo.ToSLConditionalFormattingValueObject2010()); } foreach (SLColor clr in this.Colors) { cs2010.Colors.Add(clr.Clone()); } return(cs2010); }
internal SLColorScale2010 Clone() { SLColorScale2010 cs = new SLColorScale2010(); int i; cs.Cfvos = new List<SLConditionalFormattingValueObject2010>(); for (i = 0; i < this.Cfvos.Count; ++i) { cs.Cfvos.Add(this.Cfvos[i].Clone()); } cs.Colors = new List<SLColor>(); for (i = 0; i < this.Colors.Count; ++i) { cs.Colors.Add(this.Colors[i].Clone()); } return cs; }
internal SLColorScale2010 Clone() { SLColorScale2010 cs = new SLColorScale2010(); int i; cs.Cfvos = new List <SLConditionalFormattingValueObject2010>(); for (i = 0; i < this.Cfvos.Count; ++i) { cs.Cfvos.Add(this.Cfvos[i].Clone()); } cs.Colors = new List <SLColor>(); for (i = 0; i < this.Colors.Count; ++i) { cs.Colors.Add(this.Colors[i].Clone()); } return(cs); }
internal SLColorScale2010 ToSLColorScale2010() { SLColorScale2010 cs2010 = new SLColorScale2010(); foreach (SLConditionalFormatValueObject cfvo in this.Cfvos) { cs2010.Cfvos.Add(cfvo.ToSLConditionalFormattingValueObject2010()); } foreach (SLColor clr in this.Colors) { cs2010.Colors.Add(clr.Clone()); } return cs2010; }