Click or drag to resize

XlsRange ExpandGroup Method (GroupByType)

Expands current group.
Examples
The following code illustrates how to expand the group in the Range:
<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);</para><para>//Save to file</para><para>workbook.SaveToFile("ExpandGroup.xlsx");</para>

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

Parameters

groupBy
Type: Spire.Xls GroupByType
This parameter specifies whether the grouping should be performed by rows or by columns.

Implements

IXLSRange ExpandGroup(GroupByType)
See Also