DeleteRange

Cells.DeleteRange method

删除一系列单元格并根据移位选项移位单元格。

public void DeleteRange(int startRow, int startColumn, int endRow, int endColumn, 
    ShiftType shiftType)
范围类型描述
startRowInt32开始行索引。
startColumnInt32开始列索引。
endRowInt32结束行索引。
endColumnInt32结束列索引。
shiftTypeShiftType移动单元格选项。

也可以看看