且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

采用OpenXML的C#中获取Excel单元格的列索引

更新时间:2023-02-13 17:33:19

既然你可以通过使用一排的细胞循环 Worksheet.Descendants<电池>() ,你可以简单地使用 -loop确定单元格的索引。

Since you can loop through the cells of a row using Worksheet.Descendants<Cell>(), you can simply use a for-loop to determine the index of the cell.