C# Worksheet Cell Background Color

C# Worksheet Cell Background Color. Cell color or cell fill color is represented by. Load a sample excel file using workbook.loadfromfile () method.

Cell Coloring Worksheet Printable Worksheets and from

So use this code to get color: Imports system.drawing imports spire.xls namespace backgrandcolor class program private shared sub main(args as string()) dim workbook as new workbook() workbook.loadfromfile(.\.\.\.\data\country.xls, excelversion.version97to2003) dim worksheet as worksheet = workbook.worksheets(0) 'set the backgroundcolor=lightblue of. Get a specified worksheet using workbook.worksheets [] property.