private Excel.Range range = (Excel.Range)sheet.Rows["1:10", Missing.Value];
//删除整行 1~10行
range.Delete(Excel.XlDirection.xlDown);
C# EXCEL 删除行
最新推荐文章于 2022-01-06 17:34:09 发布
private Excel.Range range = (Excel.Range)sheet.Rows["1:10", Missing.Value];
//删除整行 1~10行
range.Delete(Excel.XlDirection.xlDown);