var sheet = spread.getActiveSheet();
var defaultStyle = sheet.getDefaultStyle();
defaultStyle.cellType = new GC.Spread.Sheets.CellTypes.Text(GC.Spread.Sheets.CellTypes.EditorType.textarea);
sheet.setDefaultStyle(defaultStyle);
var style = new GC.Spread.Sheets.Style();
style.backColor = "#ff0000"; // 不符合条件时的背景颜色 // 应用条件格式规则 sheet.conditionalFormats.addFormulaRule("=OR(E5<10,E5>20)",style, [new GC.Spread.Sheets.Range(4, 4, 1, 1)]);