Finally got working a more natural way to deal with collections of rows/columns/ranges
Old Method (You have to iterate through every item):
ws2.Columns("G:H").ForEach(c => c.Style.Fill.BackgroundColor = Color.Blue);

New Method (No iteration necessary, the program knows you want to apply the style/whatever to the entire collection):
ws2.Columns("G:H").Style.Fill.BackgroundColor = Color.Blue;

Right now it only works with columns but I'll add it to rows and ranges before release.
1 parent 805c331 commit 6ad9fdfb00b743dcf38646cb7855d94df408dc4d
@MDeLeon_cp MDeLeon_cp authored on 23 Sep 2010
Showing 6 changed files
View
ClosedXML/ClosedXML/ClosedXML/Excel/Columns/IXLColumns.cs
View
ClosedXML/ClosedXML/ClosedXML/Excel/Columns/XLColumns.cs
View
ClosedXML/ClosedXML/ClosedXML/Excel/IXLWorksheet.cs
View
ClosedXML/ClosedXML/ClosedXML/Excel/XLWorksheet.cs
View
ClosedXML/ClosedXML/ClosedXML_Examples/Columns/ColumnCollections.cs
View
ClosedXML/ClosedXML/ClosedXML_Examples/PageSetup/SheetTab.cs