API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.DuplicateAsRange method
Duplicates the shape or selection and returns the duplicated shape(s) as a shape range
Syntax:
Function DuplicateAsRange(Optional ByVal OffsetX As Double = 0, Optional ByVal OffsetY As Double = 0) As ShapeRange
Parameters:
Name Type Description
OffsetX
Double
Specifies the horizontal offset of the duplicate.
OffsetY
Double
Specifies the vertical offset of the duplicate.
Remarks:
The DuplicateAsRange method duplicates a shape or selection and returns the duplicated shape (or shapes) as a shape range.