wps_et_set_conditional_format
Apply conditional formatting to cell ranges: highlight values by comparison, color scales, or data bars. Clear existing formatting when needed.
Instructions
设置条件格式。type=cell_value 按比较运算符高亮(operator+value1[+value2]+fill_color/font_color);type=color_scale 三色刻度;type=data_bar 数据条(可选 fill_color);type=clear 清除该区域全部条件格式。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 条件格式类型,默认 cell_value | |
| range | Yes | 区域,如 A1:D10 | |
| sheet | No | 工作表名(可选,默认当前活动表) | |
| value1 | No | 比较值1 | |
| value2 | No | 比较值2(operator=between/not_between 时必填) | |
| operator | No | type=cell_value 时的比较运算符,默认 greater | |
| fill_color | No | 填充色 #RRGGBB(可选) | |
| font_color | No | 字体色 #RRGGBB(可选,仅 cell_value) |