Click or drag to resize

IXLSRange ExpandGroup Method (GroupByType, ExpandCollapseFlags)

Expands current group.
Examples
The following code illustrates how to perform ExpandGroup in the Range with collapse option:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Expand group with flag set to expand parent</para><para>worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows, ExpandCollapseFlags.ExpandParent);</para><para>//Save to file</para><para>workbook.SaveToFile("ExpandGroup.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
void ExpandGroup(
	GroupByType groupBy,
	ExpandCollapseFlags flags
)

Parameters

groupBy
Type: Spire.Xls GroupByType
This parameter specifies whether the grouping should be performed by rows or by columns.
flags
Type: Spire.Xls ExpandCollapseFlags
Additional option flags.
See Also