ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Split Method / Split(SelectionSet,Geometry) Method
The set of features to be split.
The geometry used to define the intersection.
Example

In This Topic
    Split(SelectionSet,Geometry) Method
    In This Topic
    Splits the lines and polygons in the features with the splitGeometry.
    Syntax
    Public Overloads Sub Split( _
       ByVal features As SelectionSet, _
       ByVal splitGeometry As Geometry _
    ) 

    Parameters

    features
    The set of features to be split.
    splitGeometry
    The geometry used to define the intersection.
    Remarks
    The feature(s) will be split wherever the input geometry intersect. Examples are split a line(s) by a point(s); split a line(s) by line(s), split a polygon(s) by line(s), split a polygon(s) by polygon(s).
    Example
    Edit Operation Cut Features
    var select = MapView.Active.SelectFeatures(clipPoly);
    
    var cutFeatures = new EditOperation();
    cutFeatures.Name = "Cut Features";
    cutFeatures.Split(featureLayer, oid, cutLine);
    
    //Cut all the selected features in the active view
    //Select using a polygon (for example)
    //at 2.x - var kvps = MapView.Active.SelectFeatures(polygon).Select(
    //      k => new KeyValuePair<MapMember, List<long>>(k.Key as MapMember, k.Value));
    //cutFeatures.Split(kvps, cutLine);
    var sset = MapView.Active.SelectFeatures(polygon);
    cutFeatures.Split(sset, cutLine);
    
    //Execute to execute the operation
    //Must be called within QueuedTask.Run
    if (!cutFeatures.IsEmpty)
    {
      var result = cutFeatures.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
    }
    
    //or use async flavor
    //await cutFeatures.ExecuteAsync();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also