[Cells.MaxRow property 包含数据或样式的单元格的最大行索引。 public int MaxRow { get; } 评论 如果工作表中没有包含数据或样式的单元格,则返回 -1。 也可以看看 class Cells 命名空间 Aspose.Cells 部件 Aspose.Cells]