SpreadJS Documentation
getMaxLevel Method
Gets the number of the deepest level.
Syntax
var instance = new GcSpread.Sheets.RangeGroup(count);
var value; // Type: number
value = instance.getMaxLevel();
function getMaxLevel() : number;

Return Value

The number of the deepest level.
Example
This example uses the getMaxLevel method.
activeSheet.isPaintSuspended(true);
activeSheet.rowRangeGroup.group(0,5);
activeSheet.rowRangeGroup.group(1,4);
activeSheet.rowRangeGroup.expand(0,true);
activeSheet.colRangeGroup.group(0,1);
activeSheet.isPaintSuspended(false);
alert(activeSheet.rowRangeGroup.getMaxLevel());
Remarks
The level index is zero-based.
See Also

Reference

RangeGroup type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.