Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / QueryPaintObjects Method
The left side of the painting area.
The top side of the painting area.
The right side of the painting area.
The bottom side of the painting area.
true if the display order of drawing objects are retrieved.


In This Topic
QueryPaintObjects Method
In This Topic
Queries all drawing objects appeared in the specified cell range.
Syntax
'Declaration
 
Public Function QueryPaintObjects( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal keepOrder As Boolean, _
   Optional ByVal queryShapeType 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
Remarks
Returned drawing objects must be sorted by painting order.
See Also