corelibraries-devexpress-dot-xtracharts-dot-boxplotseriesview-8ae11e08.md
Specifies mean line style settings.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public LineStyle MeanLineStyle { get; }
<PersistenceMode(PersistenceMode.InnerProperty)>
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public ReadOnly Property MeanLineStyle As LineStyle
| Type | Description |
|---|---|
| LineStyle |
Contains mean line style settings.
|
See the following help topic for more information about line style settings: LineStyle.
The code below changes the mean line thickness and dash style:
Series boxPlotSeries = chartControl1.Series[0];
BoxPlotSeriesView boxPlotView = (BoxPlotSeriesView)boxPlotSeries.View;
boxPlotView.MeanLineVisible = true;
boxPlotView.MeanLineStyle.Thickness = 2;
boxPlotView.MeanLineStyle.DashStyle = DashStyle.Dash;
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