public override Object Clone() { CFHeaderRecord result = new CFHeaderRecord(); result.field_1_numcf = field_1_numcf; result.field_2_need_recalculation = field_2_need_recalculation; result.field_3_enclosing_cell_range = field_3_enclosing_cell_range; result.field_4_cell_ranges = field_4_cell_ranges.Copy(); return(result); }
private CFRecordsAggregate(CFHeaderRecord pHeader, CFRuleRecord[] pRules) { if (pHeader == null) { throw new ArgumentException("header must not be null"); } if (pRules == null) { throw new ArgumentException("rules must not be null"); } if (pRules.Length > MAX_CONDTIONAL_FORMAT_RULES) { throw new ArgumentException("No more than " + MAX_CONDTIONAL_FORMAT_RULES + " rules may be specified"); } header = pHeader; rules = new List<CFRuleRecord>(3); for (int i = 0; i < pRules.Length; i++) { rules.Add(pRules[i]); } }
public override Object Clone() { CFHeaderRecord result = new CFHeaderRecord(); result.field_1_numcf = field_1_numcf; result.field_2_need_recalculation = field_2_need_recalculation; result.field_3_enclosing_cell_range = field_3_enclosing_cell_range; result.field_4_cell_ranges = field_4_cell_ranges.Copy(); return result; }