Spread.Sheets Documentation
ranges Method
GC.Spread.Sheets.ConditionalFormatting Namespace > Condition type : ranges Method
The condition ranges.
Gets or sets the condition ranges.
Syntax
var instance = new GC.Spread.Sheets.ConditionalFormatting.Condition(conditionType, args);
var returnValue; // Type: any
returnValue = instance.ranges(value);
function ranges( 
   value : undefined
) : any;

Parameters

value
The condition ranges.

Return Value

If no value is set, returns the condition ranges; otherwise, returns the condition.
Example
This example creates a unique condition.
var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.uniqueCondition);
nCondition.expected(true);
nCondition.ranges([new GC.Spread.Sheets.Range(0, 0, 5, 1)]);
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);
See Also

Reference

Condition type