StepAreaSeriesView.SnapCrosshairToActualStep Property
Indicates whether the crosshair label displays the actual step value.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
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 |
---|---|
The following code sets the SnapCrosshairToActualStep property to false:
private void Form1_Load(object sender, EventArgs e) {
Series stepSeries = chartControl1.Series[0];
StepAreaSeriesView stepView = (StepAreaSeriesView)stepSeries.View;
stepView.SnapCrosshairToActualStep = false;
//...
}
See Also