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;
}
Return to top
Show: