Solved! Go to Solution.
For a curve, I want to get the point at a distance from the curve's start point. A piece of code is below:
ICurve pCurve = (ICurve)feature.ShapeCopy; // feature is a IFeature
IPoint startPoint = pCurve.FromPoint;
IPoint toPoint = pCurve.ToPoint;
double distanceOnCurve = 0.4 * pCurve.Length;
double offset = double.NaN;
bool isRightSide = false;
bool asRatio = false;
pCurve.QueryPointAndDistance(esriSegmentExtension.esriNoExtension, startPoint, asRatio, toPoint,
ref distanceOnCurve, ref offset, ref isRightSide);
But I don't know how the result be returned as a Point. Appreciate in advance if you can provide a hint.