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

TdxFcConnection.GetNearestPoint(Integer,Integer) Method

Returns the nearest point relative to the specified point.

#Declaration

Delphi
function GetNearestPoint(X: Integer; Y: Integer): Integer;

#Parameters

Name Type
X Integer
Y Integer

#Returns

Type
Integer

#Remarks

Call this function to obtain the index of the connection’s point that is the nearest to the point whose coordinates are passed as the X and Y parameters. The GetNearestPoint function value is equal to:

  • -1 if the specified point is near the source chart symbol;

  • The PointCount property value if a specific point is near the destination chart symbol.

See Also