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 );
[C#]
Optional Values
before To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
after To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT AddSegment(
ISegment* inSegment,
VARIANT* before,
VARIANT* after
);
[C++]Parameters
inSegmentinSegment is a parameter of type ISegment
before [optional] before is a parameter of type VARIANTTo 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 VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
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.