GcSpread.Sheets Namespace > Top10Condition type : Top10Condition Constructor |
var instance = new GcSpread.Sheets.Top10Condition(type, rank, ranges);
function Top10Condition( type : GcSpread.Sheets.Top10ConditionTypetype, rank : number, ranges : Array ) : Top10Condition;
activeSheet.isPaintSuspended(true); for (var row = 0; row < 25; row++) { activeSheet.setValue(row, 0, row, GcSpread.Sheets.SheetArea.viewport); } var rowFilter = new GcSpread.Sheets.HideRowFilter(new GcSpread.Sheets.Range(0, 0, 25, 1)); activeSheet.rowFilter(rowFilter); var top10Con = new GcSpread.Sheets.Top10Condition(GcSpread.Sheets.Top10ConditionType.Top, 10); var filter = activeSheet.rowFilter(); filter.addFilterItem(0, top10Con); filter.filter(0); activeSheet.isPaintSuspended(false);