officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-legendentry.md
Gets or sets whether the legend entry is shown.
Namespace : DevExpress.Spreadsheet.Charts
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
bool Hidden { get; set; }
Property Hidden As Boolean
| Type | Description |
|---|---|
| Boolean |
true , to hide the legend entry; otherwise, false.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Hidden 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.
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/LegendActions.cs#L54
// Exclude entries from the legend.
chart.Legend.CustomEntries.Add(2).Hidden = true;
chart.Legend.CustomEntries.Add(3).Hidden = true;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/LegendActions.cs#L54
// Exclude entries from the legend.
chart.Legend.CustomEntries.Add(2).Hidden = true;
chart.Legend.CustomEntries.Add(3).Hidden = true;
// Exclude entries from the legend.
chart.Legend.CustomEntries.Add(2).Hidden = true;
chart.Legend.CustomEntries.Add(3).Hidden = true;
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/LegendActions.vb#L58
' Exclude entries from the legend.
chart.Legend.CustomEntries.Add(2).Hidden = True
chart.Legend.CustomEntries.Add(3).Hidden = True
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/LegendActions.vb#L57
' Exclude entries from the legend.
chart.Legend.CustomEntries.Add(2).Hidden = True
chart.Legend.CustomEntries.Add(3).Hidden = True
' Exclude entries from the legend.
chart.Legend.CustomEntries.Add(2).Hidden = True
chart.Legend.CustomEntries.Add(3).Hidden = True
See Also