1using System.Collections.Generic;
2using NPOI.SS.UserModel;
14 public static List<ExcelIndex>
GetIndex(ISheet sheet)
16 List<ExcelIndex> list =
new List<ExcelIndex>();
17 IRow row = sheet.GetRow(0);
18 IRow row2 = sheet.GetRow(1);
19 for (
int i = 0; i < row.LastCellNum; i++)
21 ICell cell = row2.GetCell(i);
30 name = titleCell.StringCellValue;
33 type = dataCell.StringCellValue;
35 if (
type ==
"Sprite[]")
47 if (
type.StartsWith(
"#"))
56 if (
type ==
"element_id")
60 if (
type ==
"elements")
static List< ExcelIndex > GetIndex(ISheet sheet)
ExcelIndex(ICell titleCell, ICell dataCell)