internal SLIconSet2010 Clone() { SLIconSet2010 ics = new SLIconSet2010(); int i; ics.Cfvos = new List<SLConditionalFormattingValueObject2010>(); for (i = 0; i < this.Cfvos.Count; ++i) { ics.Cfvos.Add(this.Cfvos[i].Clone()); } ics.CustomIcons = new List<SLConditionalFormattingIcon2010>(); for (i = 0; i < this.CustomIcons.Count; ++i) { ics.CustomIcons.Add(this.CustomIcons[i].Clone()); } ics.IconSetType = this.IconSetType; ics.ShowValue = this.ShowValue; ics.Percent = this.Percent; ics.Reverse = this.Reverse; return ics; }
internal SLIconSet2010 Clone() { SLIconSet2010 ics = new SLIconSet2010(); int i; ics.Cfvos = new List <SLConditionalFormattingValueObject2010>(); for (i = 0; i < this.Cfvos.Count; ++i) { ics.Cfvos.Add(this.Cfvos[i].Clone()); } ics.CustomIcons = new List <SLConditionalFormattingIcon2010>(); for (i = 0; i < this.CustomIcons.Count; ++i) { ics.CustomIcons.Add(this.CustomIcons[i].Clone()); } ics.IconSetType = this.IconSetType; ics.ShowValue = this.ShowValue; ics.Percent = this.Percent; ics.Reverse = this.Reverse; return(ics); }
internal SLIconSet2010 ToSLIconSet2010() { SLIconSet2010 ics2010 = new SLIconSet2010(); ics2010.IconSetType = SLIconSet.TranslateInternalSetToIconSet2010(this.IconSetType); ics2010.ShowValue = this.ShowValue; ics2010.Percent = this.Percent; ics2010.Reverse = this.Reverse; foreach (SLConditionalFormatValueObject cfvo in this.Cfvos) { ics2010.Cfvos.Add(cfvo.ToSLConditionalFormattingValueObject2010()); } foreach (SLConditionalFormattingIcon2010 cfi in this.CustomIcons) { ics2010.CustomIcons.Add(cfi.Clone()); } return(ics2010); }