NativeExcel2 for .Net Developer's Reference

IRangeColumn.OutlineLevel Property

Gets or sets the current outline level of the specified column.

[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 column two on sheet one.

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

See Also

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