Inserts a block of columns in the worksheet to the left of the specified column, copying the style based on the copyBehavior parameter.

 public void InsertColumns(int columnNumber, int columnCount, ColumnInsertBehavior columnCellsCopyBehavior)
Public Sub InsertColumns(ByVal columnNumber As Integer, ByVal columnCount As Integer, ByVal columnCellsCopyBehavior As ColumnInsertBehavior)

The 0-based number of the column to insert.

The number of columns to insert.

The Style.ColumnInsertBehavior that defines the source style for each cell in the new column. Each cell in the new column will be given the style of its neighbor identified in this parameter.

ws.InsertColumn(3, 10, Style.InsertBehavior.CopyFromLeft);
ws.InsertColumn(3, 10, Style.InsertBehavior.CopyFromLeft)