vb.net 使用 EPPlus 获取单元格的行号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13994121/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Get Cell's Row number using EPPlus
提问by John Bustos
How can I find the row numer of a specific cell using the EPPLus library?
如何使用 EPPLus 库找到特定单元格的行号?
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.Addressand parse the row number out myself??
我正在寻找一种方法Cl.Row,但似乎没有找到它 - 我是否必须使用cl.Address并自己解析行号?
I'm sure this is a stupid Newbie question, but I can't seem to find the correct method.
我确定这是一个愚蠢的新手问题,但我似乎找不到正确的方法。
Thanks!
谢谢!
回答by Tim Schmelter
The cell is an ExcelRange, this has Startand Endproperties. If you want to know the row of the start of the range:
单元格是一个ExcelRange,它具有Start和End属性。如果您想知道范围开始的行:
Dim row As Int32 = cell.Start.Row

