ArcObjects Library Reference  (Geometry)    

ICurve.ReverseOrientation Method

Reverses the parameterization of the curve ('from' point becomes 'to' point, first segment becomes last segment, etc).

[Visual Basic 6.0]
Sub ReverseOrientation
[Visual Basic .NET]
Public Sub ReverseOrientation ( _
)
[C#]
public void ReverseOrientation (
);
[Java]
public void reverseOrientation (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT ReverseOrientation(
void
);

Product Availability

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

Description

ReverseOrientation changes the direction of the curve without changing the spatial position of the curve.  The From Point and To Point of each Segment in each part of the curve are interchanged.

Remarks

The ReverseOrientation method works the same way as the Arcedit FLIP command. It reverses the order of the vertices in the Curve.

Caution should be taken in using ReverseOrientation on Polygons.  Since ReverseOrientation changes the direction of each Ring within the Polygon, all Exterior Rings become Interior Rings and vice versa.

Reverse Orientation Example

See Also

ICurve Interface

Example

ReverseOrientation_Example