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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.