API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.OrderBackOf method
Arranges the shape's stacking order by moving it in back of another shape
Syntax:
Sub OrderBackOf(ByVal Shape As Shape)
Parameters:
Name Type Description
Shape
Remarks:
The OrderBackOf method moves all the shapes in a shape range. The shapes are moved behind the specified shape in the stacking order of the current layer.
Examples:
The following VBA example creates a set of circles behind the outline of the selected curve.
Sub Test()
Dim s As Shape, sr As New ShapeRange
Dim crv As Shape, sp As SubPath, lr As Layer
Dim x As Double, y As Double, i As Long
Set crv = ActiveShape
If crv.Type <> cdrCurveShape Then
  MsgBox "Please select a curve"
  Exit Sub
End If
Set sp = crv.Curve.SubPaths(1)
Set lr = crv.Layer
For i = 0 To 10
  sp.GetPointPositionAt x, y, i / 10, cdrRelativeSegmentOffset
  Set s = lr.CreateEllipse2(x, y, 0.3)
  s.Fill.UniformColor.RGBAssign 255, 255, 0
  sr.Add s
Next i
sr.OrderBackOf crv 
End Sub