GC.Spread.Sheets.ConditionalFormatting 名前空間 > ConditionalFormats タイプ : addTop10Rule メソッド |
Javascript (Usage) | |
---|---|
var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionalFormats(worksheet); var value; // Type: object value = instance.addTop10Rule(type, rank, style, ranges); |
Javascript (Specification) | |
---|---|
function addTop10Rule( type : Top10ConditionType, rank : number, style : Style, ranges : undefined ) : object; |
var style = new GC.Spread.Sheets.Style(); style.backColor = "red"; var ranges=[new GC.Spread.Sheets.Range(0,0,10,1)]; activeSheet.conditionalFormats.addTop10Rule(GC.Spread.Sheets.ConditionalFormatting.Top10ConditionType.top, 2, style, ranges); activeSheet.setValue(0, 0, 1); activeSheet.setValue(1, 0, 50); activeSheet.setValue(2, 0, 11); activeSheet.setValue(3, 0, 5);