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

ISegment.SplitAtDistance Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegment Interface > ISegment.SplitAtDistance Method
ArcGIS Developer Help

ISegment.SplitAtDistance Method

Split segment at specified distance.

[Visual Basic .NET]
Public Sub SplitAtDistance ( _
    ByVal distances As Double, _
    ByVal asRatio As Boolean, _
    ByRef fromSegment As ISegment, _
    ByRef toSegment As ISegment _
public void SplitAtDistance (
    double distances,
    bool asRatio,
    ref ISegment fromSegment,
    ref ISegment toSegment
HRESULT SplitAtDistance(
  double distances,
  ISegment** fromSegment,
  ISegment** toSegment

distances is a parameter of type double asRatio
asRatio is a parameter of type bool fromSegment [out]
fromSegment is a parameter of type ISegment** toSegment [out]
toSegment is a parameter of type ISegment**

Product Availability

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


Splits the input Segment at the given distance and returns the Segment between the original From Point and the split point as well as the Segment between the split point and the original To Point.  The split distance may be specified as a ratio of the total distance if AsRatio = TRUE, otherwise the distance is in the same units as the Length of the Segment.



SplitAtDistance Example

See Also

ISegment Interface