Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IndicatorPoint Class

The indicator point.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public class IndicatorPoint

The following members return IndicatorPoint objects:

#Remarks

You can use the IndicatorPoint class members to show information about an individual indicator point using the Crosshair Cursor.

#Example

This example shows how to modify the Crosshair Cursor indicator elements’ appearance using the CustomDrawCrosshair event.

In this sample, crosshair content is displayed in a legend. For this, set the ContentShowMode property to Legend. Note that you can specify the crosshair’s content show mode for a specified indicator using the CrosshairContentShowMode property.

Use the IndicatorLegendElements property to obtain a collection of indicator elements.

The following properties allow you to modify indicator element appearance:

Property Description
IndicatorPoint Returns information about an indicator point under a crosshair.
CrosshairLegendElementBase.LineElement Returns the crosshair line settings.
CrosshairLegendElementBase.AxisLabelElement Returns the crosshair axis label settings.
private void chartControl_CustomDrawCrosshair(object sender, CustomDrawCrosshairEventArgs e) {
    Brush brush = new SolidColorBrush(Colors.Green);
    foreach(CrosshairIndicatorLegendElement indicatorLegendElement in e.IndicatorLegendElements) {
        if(indicatorLegendElement.IndicatorPoint.GetNumericValue(IndicatorValueLevel.Value) > 0) {
            indicatorLegendElement.LineElement.Brush = brush;            
            indicatorLegendElement.LineElement.LineStyle.DashStyle = new DashStyle(new double[] {5, 2}, 2);
            indicatorLegendElement.AxisLabelElement.Background = brush;
        }
    }
}

#Inheritance

Object
IndicatorPoint
See Also