Interface IEnumCurve
Provides access to members that allow efficient construction of sequential subcurves along a polyline or polygon.
[Guid("A478C6A8-DDAD-11D2-9F27-00C04F6BC8E8")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IEnumCurve
Properties
CurveDistance
The current distance from the start of the curve.
double CurveDistance { get; }
Property Value
Remarks
Note: Gaps between parts are ignored in distance computations.
PartIndex
The current part index.
int PartIndex { get; }
Property Value
Segment
The segment covering the current distance of this curve iterator.
ISegment Segment { get; }
Property Value
SegmentDistance
The distance within the current segment of the current distance of this curve iterator.
double SegmentDistance { get; }
Property Value
SegmentIndex
The current segment index within the current part.
int SegmentIndex { get; }
Property Value
StopOptions
Stop options for the distance iterator.
esriCurveIteratorEnum StopOptions { get; set; }
Property Value
StopReason
The reason for the current position of the distance iterator.
esriCurveIteratorEnum StopReason { get; }
Property Value
Remarks
Note: The StopReason returns value different than esriCurveIteratorNoStop only if the enumerator wasn't explicitly set to the end points of a part. For example, setting the enumerator to a distance of zero will not return esriCurveIteratorStopAtPartFrom even if that option was set with the StopOptions property.
Methods
Clone()
Returns a copy of this enumerator positioned at the same segment.
IEnumCurve Clone()
Returns
GetSubcurve(double, double, bool)
Extracts a portion of this curve into a new curve.
ICurve GetSubcurve(double fromDistance, double toDistance, bool asRatio)
Parameters
Returns
Remarks
Note: Gaps between parts are ignored in distance computations.
Parameters description:
fromDistance: Input Double. Input distance that determines where the subcurve should start. The value of that parameter should be in map unit unless asRatio is true.
toDistance: Input Double. Input distance that determines where the subcurve should stop. The value of that parameter should be in map unit unless asRatio is true.
asRatio: Input Boolean. The asRatio determines if the input distances should be interpreted as map unit asRatio = false distance or parametric distance asRatio = True (0 = distance of 0, 1 = full length of the curve).
Next(double)
Moves iterator to a specified distance along the curve.
void Next(double distance)
Parameters
distancedouble
Remarks
Note: Gaps between parts are ignored in distance computations.
Reset()
Resets the iterator to the start of the curve.
void Reset()