ArcGIS Pro 2.6 API Reference Guide
Duplicate Method

ArcGIS.Desktop.Editing Namespace > EditOperation Class : Duplicate Method
The layer of the feature to duplicate.
The oid of the feature to duplicate.
The xOffset in map units.
The yOffset in map units.
The zOffset in map units.
Adds an edit operation that creates a duplicate of the specified feature with given geometry offsets.
Syntax
public void Duplicate( 
   Layer layer,
   long oid,
   double xOffset,
   double yOffset,
   double zOffset
)
Public Sub Duplicate( _
   ByVal layer As Layer, _
   ByVal oid As Long, _
   ByVal xOffset As Double, _
   ByVal yOffset As Double, _
   ByVal zOffset As Double _
) 

Parameters

layer
The layer of the feature to duplicate.
oid
The oid of the feature to duplicate.
xOffset
The xOffset in map units.
yOffset
The yOffset in map units.
zOffset
The zOffset in map units.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

EditOperation Class
EditOperation Members