Skip to main content

StackedStepAreaSeriesView.SnapCrosshairToActualStep Property

Indicates whether the crosshair label displays the actual step value.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[TypeConverter(typeof(BooleanTypeConverter))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public bool SnapCrosshairToActualStep { get; set; }

Property Value

Type Description
Boolean

true if the crosshair label displays the actual step value; otherwise, false. The default value is true.

Remarks

When the SnapCrosshairToActualStep property is set to true, the crosshair label displays the actual step value.

When the SnapCrosshairToActualStep property is set to false, the crosshair label displays the nearest series point data. The Chart Control determines the nearest series point based on the CrosshairOptions.SnapMode value.

SnapCrosshairToActualStep = true
SnapMode = NearestArgument
SnapCrosshairToActualStep = false
SnapMode = NearestArgument
SnapCrosshairToActualStep is set to true SnapCrosshairToActualStep is set to false

The following code sets SnapCrosshairToActualStep to false for all series in the ChartControl.Series collection:

private void Form1_Load(object sender, EventArgs e) {
  foreach (Series series in chartControl1.Series) {
      StackedStepAreaSeriesView view = (StackedStepAreaSeriesView)series.View;
      view.SnapCrosshairToActualStep = false;
  }
  //...
}
See Also