Ejemplo n.º 1
0
        private uint FindAddBorder(CT_Border border)
        {
            //Find an existing border that matches this one, if not add a copy to the current source and update the reference.
            int  findThis = border.ToString().GetHashCode();
            uint index    = 0;

            foreach (XSSFCellBorder existing in _stylesSource.GetBorders())
            {
                if (findThis == existing.GetCTBorder().ToString().GetHashCode())
                {
                    return(index);
                }
                index++;
            }
            //404 border not found. Add it
            return((uint)_stylesSource.PutBorder(new XSSFCellBorder(border.Copy())));
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(border.ToString().GetHashCode());
 }