OpenXML for excel,foreach单元格和行

我有一个Excel文件,结构如下所示。 课程单元是无限的,可能是一个单元格,可能是十个单元格。 我怎样才能得到当前的单元格索引和行索引?

A, B, C, D, E, F, G, H, ..., ..., ....... ID, name, age, course1, course2, course3, course4..., course....... 1, peter, 14, Yes, null, No, null..... 2, tom, 20, No, Yes, null, null... 3, john, 30, Yes, null, no, null... foreach (Cell c in cells) { //get the current cell index // if the c.header > D foreach (Row row in c.Elements<Row>()) { //get the current row index //get the id value of current rowid //get the name value of current rowid //get the course value of current rowid } } 

谢谢。