Back to Devexpress

SeriesBase.Visible Property

corelibraries-devexpress-dot-xtracharts-dot-seriesbase-f463c9c4.md

latest2.4 KB
Original Source

SeriesBase.Visible Property

Specifies whether the series is visible.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
Boolean

true if the series is visible; otherwise, false.

|

Remarks

Use the Visible property to show or hide all the points belonging to this series.

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

winforms-chart-hide-specific-series/CS/WindowsApplication1/WindowsApplication1/Form1.cs#L32

csharp
if (Convert.ToInt32(s.Name) > 5)
    s.Visible = false;

winforms-chart-hide-specific-series/VB/WindowsApplication1/WindowsApplication1/Form1.vb#L24

vb
For Each s As Series In cc.Series
    If Convert.ToInt32(s.Name) > 5 Then s.Visible = False
Next

See Also

SeriesBase Class

SeriesBase Members

DevExpress.XtraCharts Namespace