ArcGIS Pro 2.7 API Reference Guide
Duplicate(Layer,Int64,Double,Double,Double) Method

ArcGIS.Desktop.Editing Namespace > EditOperation Class : Duplicate(Layer,Int64,Double,Double,Double) 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

See Also

Reference

EditOperation Class
EditOperation Members