NumberFormat Excel , Microsoft. , .
, ( Excel 2010):
- "0.00" -
- "$ #, ## 0.00" -
- "_ ($ * #, ## 0.00 _); _ ($ * (#, ## 0.00); _ ($ *" "-" "??); (@_)" -
- "m/d/yyyy" -
- "[$ - F800] dddd, mmmm dd, yyyy" -
- "[$ - F400] h: mm: ss AM/PM" -
- "0.00%" -
- "#?/?" -
- "0.00E + 00" - Scientific
- "@" -
- "" -
, .
EDIT:
, - , Excel ( , NumberFormat):
string fileName = @"c:\Book1.xlsx";
Application app = new Application();
Workbook wb = app.Workbooks.Open(fileName,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing);
Worksheet sheet = wb.Sheets[1];
var cell = sheet.Cells[1, 1];
string cellNumberFormat = cell.NumberFormat;
interop .
source
share