Clip(Layer,Int64,Geometry,ClipMode) Method
Clip a feature with a geometry.
Edit Operation Clip Features
var clipFeatures = new EditOperation() { Name = "Clip Features" };
clipFeatures.Clip(featureLayer, oid, clipPoly, ClipMode.PreserveArea);
//Execute to execute the operation
//Must be called within QueuedTask.Run
if (!clipFeatures.IsEmpty)
{
var result = clipFeatures.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
}
//or use async flavor
//await clipFeatures.ExecuteAsync();
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.