Spread.Sheets
showIconOnly メソッド
アイコンのみを表示するかどうか。
アイコンのみを表示するかどうかを取得または設定します。
シンタックス
Javascript (Usage) 
var instance = new GC.Spread.Sheets.ConditionalFormatting.IconSetRule(iconSetType, ranges);
var returnValue; // Type: any
returnValue = instance.showIconOnly(value);
Javascript (Specification) 
function showIconOnly( 
   value : boolean
) : any;

パラメータ

value
アイコンのみを表示するかどうか。

戻り値の型

値が設定されていない場合は、アイコンのみを表示するかどうかを示す値を返します。値が設定されている場合は、アイコンセットルールを返します。
使用例
次のサンプルコードは、ルールを作成します。
activeSheet.setValue(0,0,1,3);
activeSheet.setValue(1,0,15,3);
activeSheet.setValue(2,0,25,3);
activeSheet.setValue(3,0,-1,3);

var iconSetRule = new GC.Spread.Sheets.ConditionalFormatting.IconSetRule();
iconSetRule.ranges([new GC.Spread.Sheets.Range(0,0,4,1)]);
iconSetRule.iconSetType(GC.Spread.Sheets.ConditionalFormatting.IconSetType.fourTrafficLights);
var iconCriteria = iconSetRule.iconCriteria();
iconCriteria[0] = new GC.Spread.Sheets.ConditionalFormatting.IconCriterion(true, GC.Spread.Sheets.ConditionalFormatting.IconValueType.number, 1);
iconCriteria[1] = new GC.Spread.Sheets.ConditionalFormatting.IconCriterion(true, GC.Spread.Sheets.ConditionalFormatting.IconValueType.number, 10);
iconCriteria[2] = new GC.Spread.Sheets.ConditionalFormatting.IconCriterion(true, GC.Spread.Sheets.ConditionalFormatting.IconValueType.number, 20);
iconSetRule.reverseIconOrder(false);
iconSetRule.showIconOnly(false);
activeSheet.conditionalFormats.addRule(iconSetRule);
解説
デフォルト値はfalseです。

関連トピック

参照

IconSetRule クラス

 

 


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