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


ICurve.GetSubcurve Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > ICurve Interface > ICurve.GetSubcurve Method
ArcGIS Developer Help

ICurve.GetSubcurve Method

Extracts a portion of this curve into a new curve.

[Visual Basic .NET]
Public Sub GetSubcurve ( _
    ByVal fromDistance As Double, _
    ByVal toDistance As Double, _
    ByVal asRatio As Boolean, _
    ByRef outSubcurve As ICurve _
)
[C#]
public void GetSubcurve (
    double fromDistance,
    double toDistance,
    bool asRatio,
    ref ICurve outSubcurve
);
[C++]
HRESULT GetSubcurve(
  double fromDistance,
  double toDistance,
  VARIANT_BOOL asRatio,
  ICurve** outSubcurve
);
[C++]
Parameters
fromDistance 

fromDistance is a parameter of type double toDistance
toDistance is a parameter of type double asRatio
asRatio is a parameter of type bool outSubcurve [out]
outSubcurve is a parameter of type ICurve**

Product Availability

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

Description

Gets the subcurve between the specified points along the original curve and creates a new curve. The elements in the new subcurve are the same type and have the same properties as the elements of the original curve. Which means if:

Input Geometry Output Geometry
Polygon Polyline
Polyline Polyline
Ring Path
Path Path
Segment Segment

 

If the input geometry is a polygon, you may want to use IRing::GetSubCurveEx which has more capabilities.

Remarks

 

Subcurve Example

See Also

ICurve Interface | IRing.GetSubcurveEx Method | ICurve.GetSubcurve Method

.NET Samples

ArcGIS Network Analyst extension barrier location editor