Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

WorksheetBase.Outline Property

Gets an Microsoft.Office.Interop.Excel.Outline that represents the outline for the worksheet.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

public Outline Outline { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Outline
An Microsoft.Office.Interop.Excel.Outline that represents the outline for the worksheet.

The following code example uses the Outline property to make the outline for the current worksheet use automatic styles.

This example is for a document-level customization.

private void ShowOutLine()
{
    this.Outline.AutomaticStyles = true;
}

Show:
© 2015 Microsoft