Parameters
- index
- 0 based index. Specify 0 to insert at the beginning. Specify GeometryCount or -1 to insert at the end.
- geometry
- The geometry to insert.
Exception | Description |
---|---|
System.ArgumentNullException | geometry is null. |
System.ArgumentException | geometry is GeometryBag. You cannot insert a GeometryBag into another GeometryBag. |
System.ArgumentOutOfRangeException | Index must be equal to -1 or less than or equal to the number of geometries in the builder. |
An Envelope that is inserted into the builder is converted to a Polygon when the GeometryBag is created. As a result, when retrieving an Envelope from a GeometryBag, it will be a Polygon.
Target Platforms: Windows 11, Windows 10