Exemple #1
0
        private void CompareToDefaults(ColorComparator c)
        {
            var         colors = HSSFColor.GetIndexHash();
            IEnumerator it     = colors.Keys.GetEnumerator();

            while (it.MoveNext())
            {
                int       index         = (int)it.Current;
                HSSFColor expectedColor = (HSSFColor)colors[index];
                HSSFColor paletteColor  = hssfPalette.GetColor((short)index);
                c.Compare(expectedColor, paletteColor);
            }
        }
Exemple #2
0
 private void CompareToDefaults(ColorComparator c)
 {
     Hashtable colors = HSSFColor.GetIndexHash();
     IEnumerator it = colors.Keys.GetEnumerator();
     while (it.MoveNext())
     {
         int index = (int)it.Current;
         HSSFColor expectedColor = (HSSFColor)colors[index];
         HSSFColor paletteColor = hssfPalette.GetColor((short)index);
         c.Compare(expectedColor, paletteColor);
     }
 }