Dela via


Workbook.ActiveChart Property

Gets a Microsoft.Office.Interop.Excel.Chart object that represents the active chart (either an embedded chart or a chart sheet). An embedded chart is considered active when it is either selected or activated. When no chart is active, this property returns nulla null reference (Nothing in Visual Basic).

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

Syntax

'Declaration
ReadOnly Property ActiveChart As Chart
    Get
Chart ActiveChart { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Chart
A Microsoft.Office.Interop.Excel.Chart object that represents the active chart; nulla null reference (Nothing in Visual Basic) if no chart is active.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace