Spread.Sheets Documentation
getMaxLevel Method
GC.Spread.Sheets.Outlines Namespace > Outline type : getMaxLevel Method
Gets the number of the deepest level.
Syntax
var instance = new GC.Spread.Sheets.Outlines.Outline(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.suspendPaint();
activeSheet.rowOutlines.group(0,5);
activeSheet.rowOutlines.group(1,4);
activeSheet.rowOutlines.expand(0,true);
activeSheet.columnOutlines.group(0,1);
activeSheet.resumePaint();
alert(activeSheet.rowOutlines.getMaxLevel());
Remarks
The level index is zero-based.
See Also

Reference

Outline type