Method ReplaceGeometry
ReplaceGeometry(Geometry)
Replaces the current Geometry with the specified geometry.
Declaration
public void ReplaceGeometry(Geometry geometry)Parameters
| Type | Name | Description | 
|---|---|---|
| Geometry | geometry | The new geometry to replace the current geometry. The GeometryType of these geometries must match. | 
Remarks
Use this method to make changes to the Geometry that are not directly supported using other GeometryEditor methods. For example, to start a new part in a Polygon or Polyline geometry, get the current Geometry, use a MultipartBuilder<T> to add the required part, and then pass the updated ToGeometry() to this method.
The Geometry is replaced by the given geometry, and therefore the z-awareness of Geometry will be the same as the given geometry.
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 200.3 - 200.8 | 
| .NET | 200.3 - 200.8 | 
| .NET Windows | 200.3 - 200.8 | 
| .NET Android | 200.3 - 200.8 | 
| .NET iOS | 200.3 - 200.8 | 
| .NET Framework | 200.3 - 200.8 | 
| UWP | 200.3 - 200.8 |