Table of Contents

ExcelFile.CollapseOutlineRows Method

Overloads

ExcelFile.CollapseOutlineRows(Int32, TCollapseChildrenMode)

Collapses or expands the row outlines in a sheet to the specified level. It is equivalent to pressing the numbers at the top of the outline gutter in Excel.

Syntax

Namespace: FlexCel.Core

public void CollapseOutlineRows(Int32 level, TCollapseChildrenMode collapseChildren)

Parameters

<-> Parameter Type Description
level Int32 Level that we want to show of the outline. (1 based).
For example, setting Level = 3 is the same as pressing the "3" number at the top of the outline gutter in Excel.
Setting Level = 1 will collapse all groups, Level = 8 will expand all groups.
collapseChildren TCollapseChildren​Mode Determines if the children of the collapsed nodes will be collapsed too.

See also

ExcelFile.CollapseOutlineRows(Int32, TCollapseChildrenMode, Int32, Int32)

Collapses or expands the row outlines in a sheet to the specified level. It is equivalent to pressing the numbers at the top of the outline gutter in Excel.

Syntax

Namespace: FlexCel.Core

public abstract void CollapseOutlineRows(Int32 level, TCollapseChildrenMode collapseChildren, Int32 firstRow, Int32 lastRow)

Parameters

<-> Parameter Type Description
level Int32 Level that we want to show of the outline. (1 based).
For example, setting Level = 3 is the same as pressing the "3" number at the top of the outline gutter in Excel.
Setting Level = 1 will collapse all groups, Level = 8 will expand all groups.
collapseChildren TCollapseChildren​Mode Determines if the children of the collapsed nodes will be collapsed too.
firstRow Int32 This defines the first row of the range to collapse/expand. Only rows inside that range will be modified.
lastRow Int32 This defines the last row of the range to collapse/expand. Only rows inside that range will be modified.

See also