Exemple #1
0
 /**
  * Clones all the style information from another
  *  ExtendedFormatRecord, onto this one. This
  *  will then hold all the same style options.
  *
  * If The source ExtendedFormatRecord comes from
  *  a different Workbook, you will need to sort
  *  out the font and format indicies yourself!
  */
 public void CloneStyleFrom(ExtendedFormatRecord source)
 {
     field_1_font_index           = source.field_1_font_index;
     field_2_format_index         = source.field_2_format_index;
     field_3_cell_options         = source.field_3_cell_options;
     field_4_alignment_options    = source.field_4_alignment_options;
     field_5_indention_options    = source.field_5_indention_options;
     field_6_border_options       = source.field_6_border_options;
     field_7_palette_options      = source.field_7_palette_options;
     field_8_adtl_palette_options = source.field_8_adtl_palette_options;
     field_9_fill_palette_options = source.field_9_fill_palette_options;
 }
Exemple #2
0
 /**
  * Will consider two different records with the same
  *  contents as Equals, as the various indexes
  *  that matter are embedded in the records
  */
 public override bool Equals(Object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj == null)
     {
         return(false);
     }
     if (obj is ExtendedFormatRecord)
     {
         ExtendedFormatRecord other = (ExtendedFormatRecord)obj;
         if (field_1_font_index != other.field_1_font_index)
         {
             return(false);
         }
         if (field_2_format_index != other.field_2_format_index)
         {
             return(false);
         }
         if (field_3_cell_options != other.field_3_cell_options)
         {
             return(false);
         }
         if (field_4_alignment_options != other.field_4_alignment_options)
         {
             return(false);
         }
         if (field_5_indention_options != other.field_5_indention_options)
         {
             return(false);
         }
         if (field_6_border_options != other.field_6_border_options)
         {
             return(false);
         }
         if (field_7_palette_options != other.field_7_palette_options)
         {
             return(false);
         }
         if (field_8_adtl_palette_options != other.field_8_adtl_palette_options)
         {
             return(false);
         }
         if (field_9_fill_palette_options != other.field_9_fill_palette_options)
         {
             return(false);
         }
         return(true);
     }
     return(false);
 }