This method has been deprecated, as it is not the most efficient way to edit Column properties. Instead, use the Worksheet.GetColumnProperties(Int32) method to return the ColumnProperties object of the desired column.

Returns an Area object representing all the cells in a specified group of columns. An area is a rectangular collection of cells.

 public Area CreateAreaOfColumns(int firstCol, int numCols)
Public Function CreateAreaOfColumns(ByVal firstCol As Integer, ByVal numCols As Integer) As Area

The 0-based index of the first column.

The number of columns to include.

An Area object representing the set of cells in the specified columns.

Area a = ws.CreateAreaOfColumns(0, 25);
Dim a As Area = ws.CreateAreaOfColumns(0, 25)