ArcGIS Pro 2.7 API Reference Guide
Clip Method (GeometryEngine)
Example 

ArcGIS.Core.Geometry Namespace > GeometryEngine Class : Clip Method
The geometry to be clipped by the given envelope.
A geometry that represents the area clipped by envelope.
Constructs the polygon created by clipping geometry by envelope.
Syntax
Public Function Clip( _
   ByVal geometry As Geometry, _
   ByVal envelope As Envelope _
) As Geometry

Parameters

geometry
The geometry to be clipped by the given envelope.
envelope
A geometry that represents the area clipped by envelope.

Return Value

The clipped geometry.
Exceptions
ExceptionDescription
Either geometry or envelope or both are null or empty.
The method is not implemented for GeometryBag.
Incompatible spatial references between the input geometries.
Remarks

GeometryEngine Clip

Example
// clip a polyline by an envelope

Envelope env = EnvelopeBuilder.CreateEnvelope(2.0, 2.0, 4.0, 4.0);
LineSegment line = LineBuilder.CreateLineSegment(new Coordinate2D(0, 3), new Coordinate2D(5.0, 3.0));
Polyline polyline = PolylineBuilder.CreatePolyline(line);

Geometry clipGeom = GeometryEngine.Instance.Clip(polyline, env);
// clip a polyline by a polygon

List<Coordinate2D> list = new List<Coordinate2D>();
list.Add(new Coordinate2D(1.0, 1.0));
list.Add(new Coordinate2D(1.0, 4.0));
list.Add(new Coordinate2D(4.0, 4.0));
list.Add(new Coordinate2D(4.0, 1.0));

Polygon polygon = PolygonBuilder.CreatePolygon(list, SpatialReferences.WGS84);

LineSegment crossingLine = LineBuilder.CreateLineSegment(MapPointBuilder.CreateMapPoint(0, 3), MapPointBuilder.CreateMapPoint(5.0, 3.0));
Polyline p = PolylineBuilder.CreatePolyline(crossingLine);
Geometry geometry = GeometryEngine.Instance.Clip(p, polygon.Extent);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GeometryEngine Class
GeometryEngine Members