public override Object Clone() { CFRuleRecord rec = new CFRuleRecord(field_1_condition_type, (ComparisonOperator)field_2_comparison_operator); rec.field_5_options = field_5_options; rec.field_6_not_used = field_6_not_used; if (ContainsFontFormattingBlock) { rec.fontFormatting = (FontFormatting)fontFormatting.Clone(); } if (ContainsBorderFormattingBlock) { rec.borderFormatting = (BorderFormatting)borderFormatting.Clone(); } if (ContainsPatternFormattingBlock) { rec.patternFormatting = (PatternFormatting)patternFormatting.Clone(); } if (field_17_formula1 != null) { rec.field_17_formula1 = field_17_formula1.Copy(); } if (field_18_formula2 != null) { rec.field_18_formula2 = field_18_formula2.Copy(); } return(rec); }
public override Object Clone() { SharedFormulaRecord result = new SharedFormulaRecord(Range); result.field_5_reserved = field_5_reserved; result.field_7_parsed_expr = field_7_parsed_expr.Copy(); return(result); }