NativeExcel2 for .Net Developer's Reference

IRangeColumns.OutlineLevel Property

Gets or sets the current outline level of each column in the specified range.

[Visual Basic]
PropertyOutlineLevelAsInteger
[C#]
intOutlineLevel{get;set;}
[C++]
__propertyintget_OutlineLevel();
__propertyvoidset_OutlineLevel(int);
[JScript]
functiongetOutlineLevel():int
functionsetOutlineLevel(int);

Property Value

Can be an integer value from 1 to 8. Level one is the outermost summary level.

Example

This example sets the outline level for columns in A1:F1 range.

[C#]
 book.Worksheets[1].Range["A1:F1"].Columns.OutlineLevel = 2;  
[VisualBasic]
 book.Worksheets(1).Range("A1:F1").Columns.OutlineLevel = 2  
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:F1"]->Columns->OutlineLevel = 2;  

See Also

IRangeColumns Interface | NativeExcel Namespace | Group Method | Ungroup Method | ClearOutline Method