Back to Devexpress

XYDiagramPaneBase.Visibility Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-5ed29b94.md

latest3.5 KB
Original Source

XYDiagramPaneBase.Visibility Property

Specifies the pane’s visibility.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public ChartElementVisibility Visibility { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Visibility As ChartElementVisibility

Property Value

TypeDescription
ChartElementVisibility

The value that defines the pane title visibility.

|

Available values:

NameDescription
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.

|

Remarks

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

csharp
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

vb
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

Pane Title

XYDiagramPaneBase Class

XYDiagramPaneBase Members

DevExpress.XtraCharts Namespace