Gets or sets the current outline level of each column in the specified range.
[Visual Basic] Property OutlineLevel As Integer [C#] int OutlineLevel { get; set; } [C++] __property int get_OutlineLevel(); __property void set_OutlineLevel(int ); [JScript] function get OutlineLevel() : int function set OutlineLevel(int);
Can be an integer value from 1 to 8. Level one is the outermost summary level.
This example sets the outline level for columns in A1:F1 range.
[C#]
book.Worksheets[1].Range["A1:F1"].Columns.OutlineLevel = 2;
[Visual Basic]
book.Worksheets(1).Range("A1:F1").Columns.OutlineLevel = 2
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1:F1"]->Columns->OutlineLevel = 2;
IRangeColumns Interface | NativeExcel Namespace | Group Method | Ungroup Method | ClearOutline Method