NativeExcel for .Net Developer's Reference

IRangeColumn.GroupMethod

Increases the outline level of the specified column.

[Visual Basic]
SubGroup()
[C#]
voidGroup();
[C++]
voidGroup();
[JScript]
functionGroup();

Example

This example groups column two on sheet one.

[C#]
 book.Worksheets[1].Range.Columns[2].Group();
[VisualBasic]
 book.Worksheets(1).Range.Columns(2).Group()
[C++]
 book->Worksheets->Item[1]->Range->Columns->Item[2]->Group();

See Also

IRangeColumn Interface | NativeExcel Namespace | Ungroup Method | OutlineLevel Property | ClearOutline Method