Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public override Object Clone()
        {
            FormulaRecord rec = new FormulaRecord();

            CopyBaseFields(rec);
            rec.field_4_value       = field_4_value;
            rec.field_5_options     = field_5_options;
            rec.field_6_zero        = field_6_zero;
            rec.field_8_parsed_expr = field_8_parsed_expr.Copy();
            rec.specialCachedValue  = specialCachedValue;
            return(rec);
        }