public static void FormatCellsInWorksheet(this IXLWorksheet worksheet, PropertyInfo[] columnTypes, int beginningDataRow, int lastDataRow) { worksheet.StyleTypes(columnTypes, beginningDataRow, lastDataRow); worksheet.Columns().AdjustToContents(beginningDataRow, lastDataRow); AddSpaceForDropDownMarker(worksheet); }