Dela via


Chart.HasLegend Property (2007 System)

Gets or sets a value that indicates whether the Chart control has a legend.

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

Syntax

'Declaration
Public Property HasLegend As Boolean
'Usage
Dim instance As Chart 
Dim value As Boolean 

value = instance.HasLegend

instance.HasLegend = value
public bool HasLegend { get; set; }
public:
property bool HasLegend {
    bool get ();
    void set (bool value);
}
public function get HasLegend () : boolean 
public function set HasLegend (value : boolean)

Property Value

Type: System.Boolean
true if the Chart control has a legend; otherwise, false.

.NET Framework Security

See Also

Reference

Chart Class

Chart Members

Microsoft.Office.Tools.Excel Namespace