Queries all drawing objects appeared in the specified cell range.
'Declaration
Public Function QueryPaintObjects( _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Boolean, _
Optional ByVal As QueryShapeType _
) As DrawingObject()
'Usage
Dim instance As WorksheetDrawing
Dim x As Double
Dim y As Double
Dim x2 As Double
Dim y2 As Double
Dim keepOrder As Boolean
Dim queryShapeType As QueryShapeType
Dim value() As DrawingObject
value = instance.QueryPaintObjects(x, y, x2, y2, keepOrder, queryShapeType)
Parameters
- x
- The left side of the painting area.
- y
- The top side of the painting area.
- x2
- The right side of the painting area.
- y2
- The bottom side of the painting area.
- keepOrder
true
if the display order of drawing objects are retrieved.- queryShapeType
Return Value
The array of drawing objects to paint