Back to Devexpress

Legend.Visible Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-legend.md

latest3.8 KB
Original Source

Legend.Visible Property

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

Declaration

csharp
bool Visible { get; set; }
vb
Property Visible As Boolean

Property Value

TypeDescription
Boolean

true , to show the legend; otherwise, false.

|

Remarks

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.

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/LegendActions.cs#L24

csharp
// Hide the legend.
chart.Legend.Visible = false;

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/LegendActions.cs#L22

csharp
// Hide the legend.
chart.Legend.Visible = false;

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/LegendActions.cs#L22

csharp
// Hide the legend.
chart.Legend.Visible = false;

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/LegendActions.vb#L26

vb
' Hide the legend.
chart.Legend.Visible = False

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/LegendActions.vb#L25

vb
' Hide the legend.
chart.Legend.Visible = False

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/LegendActions.vb#L26

vb
' Hide the legend.
chart.Legend.Visible = False

See Also

Legend Interface

Legend Members

DevExpress.Spreadsheet.Charts Namespace