[]
Inserts a cell or a range of cells into the worksheet and shifts other cells away to make space.
void Insert(InsertShiftDirection shiftDirection = InsertShiftDirection.Auto)
Sub Insert(Optional shiftDirection As InsertShiftDirection = InsertShiftDirection.Auto)
| Type | Name | Description |
|---|---|---|
| InsertShiftDirection | shiftDirection | Specifies which way to shift the cells. |
worksheet.Range["A1"].Value = "First";
worksheet.Range["A1"].Insert();
object value = worksheet.Range["A2"].Value;