The New Formatting Rule dialog allows end-users to create new conditional formatting rules and customize the appearance of cells that meet the given criteria.
This dialog can be invoked by clicking the New Rule… item in the Conditional Formatting drop-down menu. To provide end-users with this menu, add the Styles ribbon page group to the SpreadsheetControl. See the Lesson 1 - Create a Simple Spreadsheet topic for an example on how to provide a ribbon UI for the spreadsheet application.
In the invoked dialog, end-users can select the type of a new conditional rule by clicking the required item in the Select a Rule Type list. The available types of conditional formatting rules are listed in the following table.
Format all cells based on their values
Allows end-users to create the rules to format cells using 2- and 3-color scales, icons sets and data bars.
The Edit the Rule Description section of the New Formatting Rule dialog contains various options allowing end-users to specify the rule attributes and format settings to be applied to cells that meet the criteria. Note that options appearing in the Edit the Rule Description section highly depend on the rule type currently selected in the Select a Rule Type list.
To define the format settings for specific rule types, the Format Cells dialog is used. To invoke it, an end-user should click the Format button. After the required formatting options are specified, the resulting cell appearance is displayed in the Preview box.
If a data bar conditional formatting rule is selected, the Negative Value and Axis... button appears in the Edit the Rule Description section. Clicking this button invokes the Negative Value and Axis Settings dialog, which enables end-users to specify the negative bar fill and border colors, and select the axis color and its position within a cell.