Previous Document Next Document

Object Model Reference : Classes : S : Shape : Methods : Shape.OrderIsInFrontOf


Shape.OrderIsInFrontOf

Function OrderIsInFrontOf(Shape As Shape) As Boolean

Description

Member of Shape

The OrderIsInFrontOf method determines whether a shape is in front of a specified shape in the stacking order.

Parameter
Description
Shape
Specifies the shape to be checked, to determine whether another shape is in front of it (that is, above it) in the stacking order

VBA example

The following VBA example fills, with red, all shapes above the selected one.

Sub Test()
 Dim s As Shape, ss As Shape
 Set s = ActiveShape
 For Each ss In ActiveLayer.Shapes
  If ss.OrderIsInFrontOf(s) And Not ss Is s Then
   ss.Fill.UniformColor.RGBAssign 255, 0, 0
  End If
 Next ss
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.