ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / Polygon Class / ExteriorRingCount Property

In This Topic
    ExteriorRingCount Property
    In This Topic
    Gets the number of exterior rings in this polygon.
    public int ExteriorRingCount {get;}
    Public ReadOnly Property ExteriorRingCount As Integer
    An exterior ring is a part that is oriented clockwise.
    Get the exterior rings of a polygon - polygon.GetExteriorRing
    public void GetExteriorRings(Polygon inputPolygon)
      if (inputPolygon == null || inputPolygon.IsEmpty)
      // polygon part count
      int partCount = inputPolygon.PartCount;
      // polygon exterior ring count
      int numExtRings = inputPolygon.ExteriorRingCount;
      // get set of exterior rings for the polygon
      IList<Polygon> extRings = inputPolygon.GetExteriorRings();
      // test each part for "exterior ring"
      for (int idx = 0; idx < partCount; idx++)
        bool isExteriorRing = inputPolygon.IsExteriorRing(idx);
        var ring = inputPolygon.GetExteriorRing(idx);

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also