corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-5ed29b94.md
Specifies the pane’s visibility.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public ChartElementVisibility Visibility { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Visibility As ChartElementVisibility
| Type | Description |
|---|---|
| ChartElementVisibility |
The value that defines the pane title visibility.
|
Available values:
| Name | Description |
|---|---|
| Visible |
The chart element is visible.
| | Hidden |
The chart element is invisible. The place for the chart element is reserved.
| | Collapsed |
The chart element is invisible. The place for the chart element is not reserved.
|
The Visibility property can have the following values:
|
Value
|
Description
| | --- | --- | |
Visible (default value)
|
The pane is visible.
| |
Hidden
|
The pane is invisible. The place for the pane is reserved.
| |
Collapsed
|
The pane is invisible. The place for the pane is not reserved. Only the pane title is shown.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Visibility 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-charts-show-chart-legend-with-markers-in-separate-control/CS/Form1.cs#L60
if (diagram != null)
diagram.DefaultPane.Visibility = ChartElementVisibility.Hidden;
SeriesViewColorEachSupportBase colorEachView = currentSeries.View as SeriesViewColorEachSupportBase;
winforms-charts-show-chart-legend-with-markers-in-separate-control/VB/Form1.vb#L55
Dim diagram As XYDiagram2D = TryCast(chart.Diagram, XYDiagram2D)
If diagram IsNot Nothing Then diagram.DefaultPane.Visibility = ChartElementVisibility.Hidden
Dim colorEachView As SeriesViewColorEachSupportBase = TryCast(currentSeries.View, SeriesViewColorEachSupportBase)
See Also