Class XSSFConditionalFormatting

    • Method Detail

      • setRule

        public void setRule​(int idx,
                            ConditionalFormattingRule cfRule)
        Replaces an existing Conditional Formatting rule at position idx. Excel allows to create up to 3 Conditional Formatting rules. This method can be useful to modify existing Conditional Formatting rules.
        Specified by:
        setRule in interface ConditionalFormatting
        Parameters:
        idx - position of the rule. Should be between 0 and 2.
        cfRule - - Conditional Formatting rule
      • addRule

        public void addRule​(ConditionalFormattingRule cfRule)
        Add a Conditional Formatting rule. Excel allows to create up to 3 Conditional Formatting rules.
        Specified by:
        addRule in interface ConditionalFormatting
        Parameters:
        cfRule - - Conditional Formatting rule
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object