ArcObjects Library Reference  (Geometry)    

ISegmentCollection.AddSegments Method

Adds references to segments. This method is intended for internal use only.

[Visual Basic 6.0]
Sub AddSegments(
    ByVal Count As Long, _
    newSegments As ISegment _
)
[Visual Basic .NET]
Public Sub AddSegments ( _
    ByVal Count As Integer, _
    ByRef newSegments As ISegment _
)
[C#]
public void AddSegments (
    int Count,
    ref ISegment newSegments
);
[Java]
public void addSegments (
    int Count,
    ISegment newSegments
)
throws
    IOException,
    AutomationException
[C++]
HRESULT AddSegments(
  long Count,
  ISegment** newSegments
);
[C++]

Parameters

Count

  Count is a parameter of type long

newSegments [in]

  newSegments is a parameter of type ISegment

Product Availability

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

Description

Adds the first specified number (Count) of Segments to the Segment Collection from an array of Segments (with at least Count segments).  The Segments are all added to the end of the Segment Collection in the same sequence as they are ordered in the array.

Remarks

Note: the array must contains only ISegment pointers, otherwise it night crash the application.

[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

ISegmentCollection Interface

Example

IGeometryBridge_AddSegments_Example

 


Feedback Send feedback on this page