|
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.
|
|---|
|
|
| ClosedXML/ClosedXML/ClosedXML/Excel/Columns/IXLColumns.cs |
|---|
| ClosedXML/ClosedXML/ClosedXML/Excel/Columns/XLColumns.cs |
|---|
| ClosedXML/ClosedXML/ClosedXML/Excel/IXLWorksheet.cs |
|---|
| ClosedXML/ClosedXML/ClosedXML/Excel/XLWorksheet.cs |
|---|
| ClosedXML/ClosedXML/ClosedXML_Examples/Columns/ColumnCollections.cs |
|---|
| ClosedXML/ClosedXML/ClosedXML_Examples/PageSetup/SheetTab.cs |
|---|