API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.EqualDivide method
Divides the objects in the ShapeRange into equal divisions
Syntax:
Function EqualDivide(Optional ByVal Divisions As Long = 2, Optional ByVal Gap As Double = -1, Optional ByVal Group As Boolean = False, Optional ByVal Combine As Boolean = True, Optional ByVal DeleteSource As Boolean = True) As ShapeRange
Parameters:
Name Type Description
Divisions
Long
Specifies the desired number of equal divisions. Values range from 2 to 360.
Gap
Double
Specifies, in document units, the desired gap between the divisions. A value of 0 is permitted.
Group
Boolean
Specifies whether to group the divisions.
Combine
Boolean
Specifies whether to combine the divisions into a single compound path. A value of True combines the divisions.
DeleteSource
Boolean
Specifies whether to delete the original shape range. A value of True deletes the original shape range.
Remarks:
The EqualDivide method divides a shape range into parts of equal length, separated by gaps of equal size. The divisions can be combined into a single compound-path object, or they can be left as individual shapes that can be grouped.