var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionalFormats(worksheet); var value; // Type: object value = instance.addAverageRule(type, style, ranges);
function addAverageRule( type : AverageConditionType, style : Style, ranges : undefined ) : object;
Parameters
- type
- The average condition type.
- style
- The style that is applied to the cell when the condition is met.
- ranges
- The cell ranges where the rule is applied whose item type is GC.Spread.Sheets.Range.
Return Value
The average rule added to the rule collection.