Skip to main content

set_conditional_format

Function set_conditional_format 

Source
pub fn set_conditional_format(
    ws: &mut WorksheetXml,
    stylesheet: &mut StyleSheet,
    sqref: &str,
    rules: &[ConditionalFormatRule],
) -> Result<()>
Expand description

Set conditional formatting rules on a cell range. Each call adds a new conditionalFormatting element with one or more cfRule children.

Rules without an explicit priority get one greater than the current maximum. Returns Error::InvalidArgument without modifying the worksheet or stylesheet when such a priority would exceed i32::MAX.