This document is archived and information here might be outdated.  Recommended version.


IProximityOperator.ReturnNearestPoint Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IProximityOperator Interface > IProximityOperator.ReturnNearestPoint Method
ArcGIS Developer Help

IProximityOperator.ReturnNearestPoint Method

Creates and returns a point on this geometry nearest to the input point.

[Visual Basic .NET]
Public Function ReturnNearestPoint ( _
    ByVal p As IPoint, _
    ByVal extension As esriSegmentExtension _
) As IPoint
[C#]
public IPoint ReturnNearestPoint (
    IPoint p,
    esriSegmentExtension extension
);
[C++]
HRESULT ReturnNearestPoint(
  IPoint* p,
  esriSegmentExtension extension
);
[C++]
Parameters
p 

p is a parameter of type IPoint* extension
extension is a parameter of type esriSegmentExtension

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Finds and returns the nearest point on a geometry to the input point.  Depending on the method of segment extension, the nearest point can also be found on an extension of the geometry.

Remarks

 

ReturnNearestPoint Example

See Also

IProximityOperator Interface | IProximityOperator.QueryNearestPoint Method | esriSegmentExtension Constants