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


ICourse.AddSegment Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

ICourse.AddSegment Method

Adds a reference for the course to the input geometry.

[Visual Basic .NET]
Public Function AddSegment ( _
    ByVal geom As IGeometry, _
    ByVal distanceFactor As Double, _
    ByVal angularOffset As Double _
) As ISegment
[C#]
public ISegment AddSegment (
    IGeometry geom,
    double distanceFactor,
    double angularOffset
);

Product Availability

Available with ArcGIS Desktop.

Remarks

Adds a geometry segment to the input geom object. If the variable is specified, a geometry segment is returned. The geometry segment must be specified using the other methods on the ICourse interface.

The geom is a 'higher level' geometry such as a Polyline or a Polygon.

The distanceFactor is a scale factor that is multiplied to any of the distances used to define the course segment. Use a value of 1 to not change the input distances.

The angularOffset is an correction that is added to any directions used to define the course segment. The value is specified in radians. Use a value of 0 to not change the input directions.

Note: If the Type is esriCTAngleDistance or esriCTTangentCurve, there must be at least one segment in the input geometry.

See Also

ICourse Interface