SpreadJS 13
GC.Spread.Sheets.Outlines Namespace / Outline type / expand Method
The level of the outline to expand or collapse.
Whether to expand the groups.
In This Topic
    expand Method
    In This Topic
    Expands all outlines (range groups), using the specified level.
    Syntax
    var instance = new GC.Spread.Sheets.Outlines.Outline(count);
    var value; // Type: any
    value = instance.expand(level, expand);
    function expand( 
       level : number,
       expand : boolean
    ) : any;

    Parameters

    level
    The level of the outline to expand or collapse.
    expand
    Whether to expand the groups.
    Example
    This example uses the expand method.
    activeSheet.suspendPaint();
    activeSheet.rowOutlines.group(0,5);
    activeSheet.rowOutlines.expand(0,false);
    activeSheet.resumePaint();
    See Also

    Reference

    Outline type