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


ISegment.SplitAtDistance Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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 _
)
[C#]
public void SplitAtDistance (
    double distances,
    bool asRatio,
    ref ISegment fromSegment,
    ref ISegment toSegment
);
[C++]
HRESULT SplitAtDistance(
  double distances,
  VARIANT_BOOL asRatio,
  ISegment** fromSegment,
  ISegment** toSegment
);
[C++]

Parameters distances distances is a parameter of type double asRatio asRatio is a parameter of type VARIANT_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.

Description

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.

Remarks

 

SplitAtDistance Example

See Also

ISegment Interface