ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Reshape Method / Reshape(SelectionSet,Geometry) Method
The set of features to reshape.
Reshape the features with this geometry.
Example

In This Topic
    Reshape(SelectionSet,Geometry) Method
    In This Topic
    Reshape a set of features with a geometry.
    Syntax
    Public Overloads Sub Reshape( _
       ByVal features As SelectionSet, _
       ByVal reshapeGeometry As Geometry _
    ) 
    public void Reshape( 
       SelectionSet features,
       Geometry reshapeGeometry
    )

    Parameters

    features
    The set of features to reshape.
    reshapeGeometry
    Reshape the features with this geometry.
    Example
    Edit Operation Reshape Features
    // Reshapes the specified feature in the given feature layer.
    await QueuedTask.Run(() =>
      {
        var reshapeFeatures = new EditOperation() { Name = "Reshape Features" };
    
        reshapeFeatures.Reshape(featureLayer, objectId, modifyLine);
    
        //Reshape a set of features that intersect some geometry....
    
        reshapeFeatures.Reshape(MapView.Active.GetFeatures(modifyLine), modifyLine);
    
        //Execute to execute the operation
        //Must be called within QueuedTask.Run
        if (!reshapeFeatures.IsEmpty)
        {
          //Execute and ExecuteAsync will return true if the operation was successful and false if not
          var result = reshapeFeatures.Execute();
          //or use async flavor
          //await reshapeFeatures.ExecuteAsync();
        }
      });
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also