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


ISegment.SplitDivideLength 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.SplitDivideLength Method
ArcGIS Developer Help

ISegment.SplitDivideLength Method

Divide segment into smaller segments of the specified length.

[Visual Basic .NET]
Public Sub SplitDivideLength ( _
    ByVal Offset As Double, _
    ByVal Length As Double, _
    ByVal asRatio As Boolean, _
    ByRef numSplitSegments As Integer, _
    ByRef splitSegments As ISegment _
)
[C#]
public void SplitDivideLength (
    double Offset,
    double Length,
    bool asRatio,
    ref int numSplitSegments,
    ref ISegment splitSegments
);
[C++]
HRESULT SplitDivideLength(
  double Offset,
  double Length,
  VARIANT_BOOL asRatio,
  System.Int32* numSplitSegments,
  ISegment** splitSegments
);
[C++]
Parameters
Offset 

Offset is a parameter of type double Length
Length is a parameter of type double asRatio
asRatio is a parameter of type bool numSplitSegments
numSplitSegments is a parameter of type long* splitSegments
splitSegments is a parameter of type ISegment**

Product Availability

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

Description

Outputs an array of Segments of a desired input length starting at an offset distance along the curve and continuing until the end of the Segment is reached.  The offset and length may be specified as a ratio of the total length of the Segment.  SplitDivideLength outputs an array of Segments and the number of Segments in that array.  All of the output Segments in the array have the desired input length with the exception of the final Segment which has a length less than or equal to the input length (the remainder of the Segment).

Remarks

 

SplitDivideLength Example

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

See Also

ISegment Interface