Represents a polygon.
More...
Represents a polygon.
- See also
GeometryFactory.CreatePolygon
◆ AppendInteriorRing()
Creates a new Polygon
instance based on this instance, but with a new interior ring appended to the list of interior rings.
- Parameters
-
interiorRing | the new interior ring. |
- Returns
- a new
Polyline
instance, with a new interior ring.
- Exceptions
-
System.ArgumentNullException | when passing null . |
- Since
- 2024.1
◆ RemoveInteriorRing()
Creates a new Polygon
instance based on this instance, but with the interior ring at location 'index' removed.
- Parameters
-
index | the index of the interior ring to remove |
- Returns
- a new
Polyline
instance, with the interior ring at location 'index' removed.
- Exceptions
-
System.ArgumentException | for an invalid index |
- Since
- 2024.1
◆ ReplaceExteriorRing()
Creates a new Polygon
instance using the interior rings from this instance, but with a new exterior ring.
- Parameters
-
exteriorRing | the new exterior ring. |
- Returns
- a new
Polyline
instance.
- Exceptions
-
System.ArgumentNullException | when passing null . |
- Since
- 2024.1
◆ ReplaceInteriorRing()
Creates a new Polygon
instance with the exterior and interior rings from this instance, but with a new interior ring at location 'index'.
- Parameters
-
index | the index of the interior ring to replace |
interiorRing | the new interior ring. |
- Returns
- a new
Polyline
instance
- Exceptions
-
System.ArgumentNullException | when passing null . |
System.ArgumentException | for an invalid index |
- Since
- 2024.1