John Bustos
John Bustos

Reputation: 19544

Get Cell's Row number using EPPlus

How can I find the row numer of a specific cell using the EPPLus library?

I'm looking for a method along the lines of Cl.Row, but am not seeming to find it - Do I have to use the cl.Address and parse the row number out myself??

I'm sure this is a stupid Newbie question, but I can't seem to find the correct method.

Thanks!

Upvotes: 13

Views: 13119

Answers (1)

Tim Schmelter
Tim Schmelter

Reputation: 460108

The cell is an ExcelRange, this has Start and End properties. If you want to know the row of the start of the range:

Dim row As Int32 = cell.Start.Row

Upvotes: 27

Related Questions