Conditional Formatting
Conditional formatting is an advanced Microsoft Excel feature that allows you to apply formats to a cell or range of cells and have that formatting change depending on the value of the cell or the value of a formula. For example, you can have a cell appear bold only when the value of the cell is greater than 500. When the value of the cell meets the condition, the specified format is applied to the cell. If the value of the cell does not meet the condition, the default formatting is used. In Microsoft Excel, select Format, then Conditional Formatting to open the Conditional Formatting dialog.
Conditional formatting in Microsoft Excel
Aspose.Cells supports applying conditional formatting to cells at runtime. This article explains how.
Applying Conditional Formatting
Aspose.Cells supports conditional formatting in two ways:
Using Designer Spreadsheet
Developers can create a designer spreadsheet that contains conditional formatting in Microsoft Excel and then open that spreadsheet with Aspose.Cells. Aspose.Cells loads and saves the designer spreadsheet, keeping any conditional formatting setting. To find out more about designer spreadsheets, read What is a Designer Spreadsheet.
Applying Conditional Formatting at Runtime
Aspose.Cells supports applying conditional formatting at runtime.
Set Font
Setting fonts in Microsoft Excel
Set Border
Setting borders in Microsoft Excel
Set Pattern
Setting a cell pattern in Microsoft Excel
Advance topics
- Add Conditional Icons Set with the Cell Text
- Adding 2-Color Scale and 3-Color Scale Conditional Formattings
- Apply Conditional Formatting in Worksheets
- Apply Shading to Alternate Rows and Columns with Conditional Formatting