Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IRange Interface > ExpandGroup Method : ExpandGroup(ExcelGroupBy) Method
Represents to expand the group by rows/columns.

ExpandGroup(ExcelGroupBy) Method

Expands the group by rows/columns.
Syntax
'Declaration
 
Overloads Sub ExpandGroup( _
   ByVal groupBy As ExcelGroupBy _
) 
'Usage
 
Dim instance As IRange
Dim groupBy As ExcelGroupBy
 
instance.ExpandGroup(groupBy)
void ExpandGroup( 
   ExcelGroupBy groupBy
)

Parameters

groupBy
Represents to expand the group by rows/columns.
Example
The following code illustrates how to expand the group in the Range.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
             
IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
    
//Expand group with flag set to expand parent
worksheet.Range["A5:A15"].ExpandGroup(ExcelGroupBy.ByRows);
             
workbook.SaveAs("ExpandGroup.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also