public int AddConditionalFormatting(CellRangeAddress[] regions,
                                     HSSFConditionalFormattingRule rule1)
 {
     return(AddConditionalFormatting(regions,
                                     rule1 == null ? null : new HSSFConditionalFormattingRule[]
     {
         rule1
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a Conditional Formatting rule.
 /// Excel allows to Create up to 3 Conditional Formatting rules.
 /// </summary>
 /// <param name="cfRule">Conditional Formatting rule</param>
 public void AddRule(HSSFConditionalFormattingRule cfRule)
 {
     cfAggregate.AddRule(cfRule.CfRuleRecord);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 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.
 /// </summary>
 /// <param name="idx">position of the rule. Should be between 0 and 2.</param>
 /// <param name="cfRule">Conditional Formatting rule</param>
 public void SetRule(int idx, HSSFConditionalFormattingRule cfRule)
 {
     cfAggregate.SetRule(idx, cfRule.CfRuleRecord);
 }