Back to Devexpress

BoxPlotSeriesView.MeanLineStyle Property

corelibraries-devexpress-dot-xtracharts-dot-boxplotseriesview-8ae11e08.md

latest2.1 KB
Original Source

BoxPlotSeriesView.MeanLineStyle Property

Specifies mean line style settings.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public LineStyle MeanLineStyle { get; }
vb
<PersistenceMode(PersistenceMode.InnerProperty)>
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public ReadOnly Property MeanLineStyle As LineStyle

Property Value

TypeDescription
LineStyle

Contains mean line style settings.

|

Remarks

See the following help topic for more information about line style settings: LineStyle.

The code below changes the mean line thickness and dash style:

csharp
Series boxPlotSeries = chartControl1.Series[0];
BoxPlotSeriesView boxPlotView = (BoxPlotSeriesView)boxPlotSeries.View;
boxPlotView.MeanLineVisible = true;
boxPlotView.MeanLineStyle.Thickness = 2;
boxPlotView.MeanLineStyle.DashStyle = DashStyle.Dash;
vb
Dim boxPlotSeries As Series = chartControl1.Series(0)
Dim boxPlotView As BoxPlotSeriesView = CType(boxPlotSeries.View, BoxPlotSeriesView)
boxPlotView.MeanLineVisible = True
boxPlotView.MeanLineStyle.Thickness = 2
boxPlotView.MeanLineStyle.DashStyle = DashStyle.Dash

Result:

See Also

BoxPlotSeriesView Class

BoxPlotSeriesView Members

DevExpress.XtraCharts Namespace