NativeExcel for .Net Developer's Reference

IRangeColumns.UngroupMethod

Decreases the outline level of columns in the specified range.

[Visual Basic]
SubUngroup()
[C#]
voidUngroup();
[C++]
voidUngroup();
[JScript]
functionUngroup();

Example

This example ungroups columns in the range B1:F1.

[C#]
 book.Worksheets[1].Range["B1:F1"].Columns.Ungroup();
[VisualBasic]
 book.Worksheets(1).Range("B1:F1").Columns.Ungroup()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"B1:F1"]->Columns->Ungroup();

See Also

IRangeColumns Interface | NativeExcel Namespace | Group Method | OutlineLevel Property | ClearOutline Method