SpreadJS Documentation
setCollapsed Method
GC.Spread.Sheets.Outlines Namespace > Outline type : setCollapsed Method
The index.
Set to true to collapse the level.
Sets the collapsed level.
Syntax
var instance = new GC.Spread.Sheets.Outlines.Outline(count);
var value; // Type: any
value = instance.setCollapsed(index, collapsed);
function setCollapsed( 
   index : number,
   collapsed : boolean
) : any;

Parameters

index
The index.
collapsed
Set to true to collapse the level.
Example
This example uses the setCollapsed method.
activeSheet.suspendPaint();
activeSheet.rowOutlines.group(0,5);
activeSheet.rowOutlines.setCollapsed(0,false);
activeSheet.resumePaint();
See Also

Reference

Outline type