IChartAbstractItem.Contains

Syntax

Contains(Point: IGxPointF): Boolean;

Parameters

Point. Dot.

Description

The Contains property checks if the point is included into the object.

Comments

The property returns True if the point is included into the object, otherwise the property returns False.

Example

This example assumes that there is the Chart object of the IChart type.

Add links to the Chart, Drawing, Ui system assemblies.

Sub UserProc;
Var
    Chart: IChart;
    Ser: IChartSerie;
    point: IGxPointF;
    b: Boolean;
Begin
    Ser := Chart.Series.Item(
0);
    point := 
New GxPointF.Create(11);
    b := Ser.Contains(point);
    
If b Then WinApplication.InformationBox("The point is included into the series");
        
Else WinApplication.InformationBox("The point is not included into the series");
    
End If;
End Sub UserProc;

After executing the example the system displays a message informing whether the point is included into the series.

See also:

IChartAbstractItem