public uint GetSheetStyleIndex(ExcelSheetStyleIndex index)
 {
     if (_indexes != null && _indexes.ContainsKey(index))
     {
         return(_indexes[index]);
     }
     return(0);
 }
Exemple #2
0
 private static bool IsNumericType(ExcelSheetStyleIndex styleIndex)
 {
     return(styleIndex == ExcelSheetStyleIndex.Nformat4Decimal);
 }
Exemple #3
0
 public ExcelCell(string value,
                  ExcelSheetStyleIndex styleIndex = ExcelSheetStyleIndex.Default)
 {
     Value      = value;
     StyleIndex = styleIndex;
 }
 private void AppendWithIndexSave(CellFormats formats, CellFormat child, ExcelSheetStyleIndex excelSheetIndex)
 {
     formats.AppendChild(child);
     _indexes.Add(excelSheetIndex, (uint)_indexes.Count);
 }