This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentCollection Interface > ISegmentCollection.AddSegment Method (ArcObjects .NET 10.4 SDK) |
Adds a reference to the input segment at the end, or before or after a specified index.
[Visual Basic .NET] Public Sub AddSegment ( _ ByVal inSegment As ISegment, _ [ByRef before As Object], _ [ByRef after As Object] _ )
[C#] public void AddSegment ( ISegment inSegment, ref object before, ref object after );
Optional Values
[C++]
HRESULT AddSegment(
ISegment* inSegment,
VARIANT* before,
VARIANT* after
);
[C++]
Parameters inSegment
inSegment is a parameter of type ISegment before [optional] before is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. after [optional] after is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Adds a Segment to a Segment Collection. If before and after are omitted, the Segment is added to the end of the Segment Collection. Additionally, by specifying either the before or after index, the Segment can be added at a specific location in the Segment Collection.