Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells provides a class, Workbook that represents a Microsoft Excel file. The Workbook class contains a Worksheets collection that allows access to each worksheet in an Excel file. A worksheet is represented by the Worksheet class. The Worksheet class provides a Cells collection. Each item in the Cells collection represents an object of the Cell class.
Aspose.Cells provides the Cell class' getStyle and setStyle methods which are used to get and set a cell’s formatting style. The Style class provides properties for configuring font settings.
Developers can apply any font to text inside a cell by using the Font object’s setName method.
Developers can make text bold by setting the Font object’s setIsBold method to true.
Set the font size with the Font object’s setSize method.
Use the Font object’s setColor method to set the font color. Select any color from the Color enumeration (part of Node.js) and assign it to the setColor method.
Use the Font object’s setUnderline method to underline text. Aspose.Cells offers various pre-defined font underline types in the FontUnderlineType enumeration.
| Font Underline Types | Description |
|---|---|
| Accounting | A single accounting underline |
| Double | Double underline |
| DoubleAccounting | Double accounting underline |
| None | No underline |
| Single | A single underline |
Apply strikeout by setting the Font object’s setIsStrikeout method to true.
Apply subscript by setting the Font object’s setIsSubscript method to true.
Developers can apply the superscript effect on the font by setting the setIsSuperscript method of the Font object to true.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.