ArcGIS Pro 2.6 API Reference Guide
Extent Property (Multipart)
Example 

ArcGIS.Core.Geometry Namespace > Multipart Class : Extent Property
Gets the minimum enclosing envelope of the instance.
Syntax
public override Envelope Extent {get;}
Public Overrides ReadOnly Property Extent As Envelope

Property Value

An Envelope.
Remarks

Extent

Example
// 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, Windows 7

See Also

Reference

Multipart Class
Multipart Members