![]() |
![]() |
Shape.OrderFrontOf
Sub OrderFrontOf(Shape As Shape)
Member of Shape
The OrderFrontOf method places a shape in front of a specified shape in the stacking order within the same layer.
Parameters
|
Description
|
Shape
|
Identifies the shape that has another shape placed in front of it in the stacking order
|
The following code example creates a gray rectangle in front of the selected shape, and it then moves the selected shape in front of the rectangle:
Sub Test() Dim s As Shape, r As Shape Dim x As Double, y As Double, sx As Double, sy As Double If ActiveSelection.Shapes.Count = 1 Then Set s = ActiveLayer.CreateEllipse(2, 2, 5, 5) s.GetBoundingBox x, y, sx, sy Set r = ActiveLayer.CreateRectangle2(x, y, sx, sy) r.Fill.UniformColor.RGBAssign 225, 225, 225 s.OrderFrontOf r End If End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.