Spread.Sheets Documentation
ScaleRule class
Represents a scale conditional rule.
Syntax
var instance = new GC.Spread.Sheets.ConditionalFormatting.ScaleRule();
function ScaleRule;
Example
This example creates a rule.
activeSheet.conditionalFormats.add2ScaleRule(GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number,1,"Yellow",GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number,50,"Blue", [new GC.Spread.Sheets.Range(0,0,20,1)]);
activeSheet.setValue(0,0,1,3);
activeSheet.setValue(1,0,45,3);
activeSheet.setValue(2,0,75,3);
Inheritance Hierarchy

Object
   GC.Spread.Sheets.ConditionalFormatting.ScaleRule
      GC.Spread.Sheets.ConditionalFormatting.DataBarRule
      GC.Spread.Sheets.ConditionalFormatting.IconSetRule

Constructors
 NameDescription
public ConstructorScaleRule ConstructorRepresents a scale conditional rule.  
Top
Methods
 NameDescription
public MethodcreateConditionCreates a condition for the rule.  
public MethodevaluateReturns a specified value of the rule if the cell satisfies the condition.  
public MethodmaxColorGets or sets the maximum color scale.  
public MethodmaxTypeGets or sets the maximum scale type.  
public MethodmaxValueGets or sets the maximum scale value.  
public MethodmidColorGets or sets the midpoint scale color.  
public MethodmidTypeGets or sets the midpoint scale type.  
public MethodmidValueGets or sets the midpoint scale value.  
public MethodminColorGets or sets the minimum scale color.  
public MethodminTypeGets or sets the type of minimum scale.  
public MethodminValueGets or sets the minimum scale value.  
public MethodstopIfTrueGets whether evaluation should stop if the condition evaluates to true.  
Top
See Also

Reference

GC.Spread.Sheets.ConditionalFormatting Namespace
Using the Scale Rule

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.