This commit is contained in:
wei 2021-09-29 16:08:58 +08:00
commit b14bf66655

View File

@ -233,6 +233,11 @@ foreach (var sheetName in sheetNames)
```csharp
var columns = MiniExcel.GetColumns(path); // e.g result : ["A","B"...]
or
var columns = MiniExcel.GetColumns(path, useHeaderRow: true);
// e.g result : ["excel表实际的列名称","excel表实际的列名称"...]
var cnt = columns.Count; // get column count
```
@ -1319,4 +1324,8 @@ private IEnumerable<Dictionary<int, object>> ConvertToIntIndexRows(IEnumerable<o
### Contributors
![](https://contrib.rocks/image?repo=shps951023/MiniExcel)
![](https://contrib.rocks/image?repo=shps951023/MiniExcel)
### QQ群
欢迎交流QQ群 813100564(.NET MiniExcel、MiniReport)请给源码项目点个Star吧
希望MiniExcel对您有用您的支持也是MiniExcel开源的动力MiniExcel有您更精彩