예제 #1
0
 public override object GetValue(ICell cell)
 {
     if (CellFormat.UltimateType(cell) == CellType.Boolean)
     {
         return(cell.BooleanCellValue ? "TRUE" : "FALSE");
     }
     else
     {
         return(cell.StringCellValue);
     }
 }
예제 #2
0
            public override object GetValue(ICell cell)
            {
                CellType type = CellFormat.UltimateType(cell);

                if (type == CellType.Boolean)
                {
                    return(cell.BooleanCellValue ? "TRUE" : "FALSE");
                }
                else if (type == CellType.Numeric)
                {
                    return(cell.NumericCellValue);
                }
                else
                {
                    return(cell.StringCellValue);
                }
            }