EasyXLS

Cell background color and pattern

EasyXLS™ library enables you to apply a background for Excel cells, rows, and columns. Background color, patterns and fill effects can be set for the Excel spreadsheet.

For better performances, the best option is to apply the background setting to the style of the cell, row, or column by using ExcelStyle class. But the formatting can also be applied directly to the cell, row, or column.

Background color

The below source code sample shows how to change the background for a cell style from the Excel file.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Pattern

Above the cell background, various pattern styles can be applied. The below source code sample shows how to apply a pattern for a cell style from the Excel file.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Gradient fill

Fill effects are available for the cell formatting. The below source code sample shows how to apply a gradient on a cell of the Excel spreadsheet.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Available for: Professional, Excel Writer
Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
COM+ Excel Library
full COM+ version to import, export or convert Excel files
-
Java
Java Excel Library
full Java version to import, export or convert Excel files
Download EasyXLS™ Excel Library for .NET and Java

File formats:

Office 365
MS Excel 2021 - 2025
MS Excel 2007 - 2019
MS Excel 97 - 2003
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT