NativeExcel for .Net Developer's Reference

IRange.ClearOutlineMethod

Clears the outline for rows and columns in the specified range.

[Visual Basic]
SubClearOutline()
[C#]
voidClearOutline();
[C++]
voidClearOutline();
[JScript]
functionClearOutline();

Example

This example clears the outline for rows one through ten and columns A through F on sheet one.

[C#]
 book.Worksheets[1].Range["A1:F10"].ClearOutline();
[VisualBasic]
 book.Worksheets(1).Range("A1:F10").ClearOutline()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:F10"]->ClearOutline();
This example clears the outline for rows one through five on sheet one.
[C#]
 book.Worksheets[1].Range["A1:A5"].Rows.ClearOutline();
[VisualBasic]
 book.Worksheets(1).Range("A1:A5").Rows.ClearOutline()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:A5"]->Rows->ClearOutline();
This example clears the outline for columns A through F on sheet one.
[C#]
 book.Worksheets[1].Range["A1:F1"].Columns.ClearOutline();
[VisualBasic]
 book.Worksheets(1).Range("A1:F1").Columns.ClearOutline()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:F1"]->Columns->ClearOutline();

See Also

IRange Interface | NativeExcel Namespace | IRangeColumns.ClearOutline Method | IRangeRows.ClearOutline Method | Ungroup Method | Group Method | OutlineLevel Property