Exemple #1
0
 private void AddDefaultStyles()
 {
     Fonts.Add(new Font("Calibri", size: 11));
     Fills.Add(new Fill(new PatternFill(FillPattern.None, null, null), null));
     Fills.Add(new Fill(new PatternFill(FillPattern.Gray125, null, null), null));
     Borders.Add(new Border());
     CellFormats.Add(new CellFormat(null, 0, 0, 0, 0));
 }
Exemple #2
0
        public uint Add(CellFormat cellFormat)
        {
            if (cellFormat == null)
            {
                throw new ArgumentNullException(nameof(cellFormat));
            }

            var i = CellFormats.IndexOf(cellFormat);

            if (i < 0)
            {
                i = CellFormats.Count;
                CellFormats.Add(cellFormat);
            }

            return((uint)i);
        }