public class XSSFConditionalFormatting extends Object implements ConditionalFormatting
Constructor and Description |
---|
XSSFConditionalFormatting(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTConditionalFormatting cf,
XSSFSheet sh) |
XSSFConditionalFormatting(XSSFSheet sh) |
Modifier and Type | Method and Description |
---|---|
void |
addRule(ConditionalFormattingRule cfRule)
Add a Conditional Formatting rule.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTConditionalFormatting |
getCTConditionalFormatting() |
CellRangeAddress[] |
getFormattingRanges() |
int |
getNumberOfRules() |
XSSFConditionalFormattingRule |
getRule(int idx) |
void |
setRule(int idx,
ConditionalFormattingRule cfRule)
Replaces an existing Conditional Formatting rule at position idx.
|
public XSSFConditionalFormatting(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTConditionalFormatting cf, XSSFSheet sh)
public XSSFConditionalFormatting(XSSFSheet sh)
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTConditionalFormatting getCTConditionalFormatting()
public CellRangeAddress[] getFormattingRanges()
getFormattingRanges
in interface ConditionalFormatting
null
public void setRule(int idx, ConditionalFormattingRule cfRule)
setRule
in interface ConditionalFormatting
idx
- position of the rule. Should be between 0 and 2.cfRule
- - Conditional Formatting rulepublic void addRule(ConditionalFormattingRule cfRule)
addRule
in interface ConditionalFormatting
cfRule
- - Conditional Formatting rulepublic XSSFConditionalFormattingRule getRule(int idx)
getRule
in interface ConditionalFormatting
public int getNumberOfRules()
getNumberOfRules
in interface ConditionalFormatting
Copyright © 2020. All rights reserved.