EasyXLS

Cell font settings

EasyXLS™ library enables you to apply fonts for Excel cells, rows and columns. Font name and size, font color, style, underline and effects can be set for the Excel spreadsheet.

For better performances, the best option is to apply the font 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.

Font name

The below source code sample shows how to change the font name for a cell style from the Excel file.
C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Font size

The below source code sample demonstrates how to change the font size for a cell style from the Excel file.
C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Font color

The below source code sample shows how to change the foreground for a cell style from the Excel file.
C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Font style

Font style can be changed for a cell and italic, bold or bold-italic appearance is set.

The below source code sample shows how to change the font style to bold-italic for a cell in an Excel file.
C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Font underline

Underline can be applied for a cell in an Excel file. Underline single, double, single accounting and double accounting are supported.

The below source code sample shows how to underline a text in a cell with a single line.
C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python
 

Font effects

Effects can be applied for a text inside a cell. Strikethrough, superscript and subscript effects are supported.

The below source code sample shows how to strikethrough a text in a cell.
C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Available for: Professional, Excel Writer, Excel Reader
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 - 2024
MS Excel 2007 - 2019
MS Excel 97 - 2003
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT