ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipartBuilderEx Class / ReverseOrientation Method

In This Topic
    ReverseOrientation Method (MultipartBuilderEx)
    In This Topic
    Changes the direction of the parts without changing the spatial position of the parts. The start point and end point of each segment in each part are interchanged.
    public void ReverseOrientation()
    Public Sub ReverseOrientation() 
    Caution should be taken when using ReverseOrientation on polygons. Since ReverseOrientation changes the direction of each part within the polygon, all exterior rings become interior rings and vice versa.

    GeometryEngine Reverse Orientation

    Reverse the order of points in a Polyline
    var polylineBuilder = new PolylineBuilderEx(polyline);
    Polyline reversedPolyline = polylineBuilder.ToGeometry();

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also