Пример #1
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);
        }