Spread.Sheets
Condition メソッド
パラメーターオブジェクトを使用する条件項目を表します。
シンタックス
Javascript (Usage) 
var value; // Type: any
value = GC.Spread.Sheets.ConditionalFormatting.Condition(conditionType, args);
Javascript (Specification) 
function Condition( 
   conditionType : ConditionType,
   args : Object
) : any;

パラメータ

conditionType
args
使用例
var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.averageCondition, {compareType: GC.Spread.Sheets.ConditionalFormatting.AverageConditionType.above}); nCondition.ranges([new GC.Spread.Sheets.Range(0, 0, 10, 3)]); var validator = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(nCondition); validator.type(GC.Spread.Sheets.DataValidation.CriteriaType.custom); activeSheet.getCell(0, 0, GC.Spread.Sheets.SheetArea.viewport).validator(validator); spread.options.highlightInvalidData = true; activeSheet.setValue(0, 0, 5); activeSheet.setValue(1, 0, 15);

関連トピック

参照

ConditionalFormatting タイプ

 

 


© 2016-2018, GrapeCity inc. All rights reserved.