officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-legend.md
Gets or sets whether the legend is displayed on a chart.
Namespace : DevExpress.Spreadsheet.Charts
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
bool Visible { get; set; }
Property Visible As Boolean
| Type | Description |
|---|---|
| Boolean |
true , to show the legend; otherwise, false.
|
To hide specific legend entries, use the Legend.CustomEntries property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Visible 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.
// Hide the legend.
chart.Legend.Visible = false;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/LegendActions.cs#L22
// Hide the legend.
chart.Legend.Visible = false;
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/LegendActions.cs#L22
// Hide the legend.
chart.Legend.Visible = false;
' Hide the legend.
chart.Legend.Visible = False
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/LegendActions.vb#L25
' Hide the legend.
chart.Legend.Visible = False
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/LegendActions.vb#L26
' Hide the legend.
chart.Legend.Visible = False
See Also