Parameters
- index
- The part index.
Return Value
A boolean indicating if the part is an exterior ring.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The index is negative or is greater than or equal to the number of parts in this polygon. |
public void GetExteriorRings(Polygon inputPolygon) { if (inputPolygon == null || inputPolygon.IsEmpty) return; // 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