corelibraries-devexpress-dot-xtracharts-dot-indicator-378441e2.md
Gets or sets a legend displaying an indicator legend item.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Legend Legend { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Legend As Legend
| Type | Description |
|---|---|
| Legend |
A Legend object displaying an indicator legend.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Legend property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-chart-add-an-additional-legend-to-a-chart/CS/LegendsSamples/Form1.cs#L42
// Assign the data displayed in legend.
macd.Legend = macdLegend;
#endregion #AddAdditionalLegend
winforms-chart-add-an-additional-legend-to-a-chart/VB/LegendsSamples/Form1.vb#L43
' Assign the data displayed in legend.
macd.Legend = macdLegend
#End Region ' #AddAdditionalLegend
See Also