Share via


WorksheetBase.Outline Property

Gets an 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)

Syntax

'Declaration
Public ReadOnly Property Outline As Outline
public Outline Outline { get; }

Property Value

Type: Outline
An Outline that represents the outline for the worksheet.

Examples

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 Sub ShowOutLine()
    Me.Outline.AutomaticStyles = True 
End Sub
private void ShowOutLine()
{
    this.Outline.AutomaticStyles = true;
}

.NET Framework Security

See Also

Reference

WorksheetBase Class

Microsoft.Office.Tools.Excel Namespace