NativeExcel for .Net Developer's Reference

IWorksheet.Outline Property

Returns an IOutline interface that represents the outline for the specified worksheet.

[Visual Basic]
PropertyReadOnlyOutlineAsIOutline
[C#]
IOutlineOutline{get;}
[C++]
__propertyIOutline*get_Outline();
[JScript]
functiongetOutline():IOutline

Property Value

IOutline interface.

Example

This example sets the outline properties for worksheet one.

[C#]
book.Worksheets[1].Outline.SummaryColumn = XlSummaryColumn.xlSummaryOnLeft;
book.Worksheets[1].Outline.SummaryRow    = XlSummaryRow.xlSummaryAbove;
[VisualBasic]
book.Worksheets(1).Outline.SummaryColumn = XlSummaryColumn.xlSummaryOnLeft
book.Worksheets(1).Outline.SummaryRow    = XlSummaryRow.xlSummaryAbove
[C++]
IWorksheet* sheet = book->Worksheets->Item[1];
sheet->Outline->SummaryColumn = XlSummaryColumn::xlSummaryOnLeft;
sheet->Outline->SummaryRow = XlSummaryRow::xlSummaryAbove;

See Also

IWorksheet Interface | NativeExcel Namespace | IOutline Interface