Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / QueryObjects Method
The top row index of the cell range.
The left column index of the cell range.
The bottom row index of the cell range.
The right column index of the cell range.
true to also get free floating drawing objects.
true to return the drawing object which is overlaped by the cell range.


In This Topic
    QueryObjects Method
    In This Topic
    Queries all drawing objects appeared in the specified cell range.
    Syntax
    'Declaration
     
    
    Public Function QueryObjects( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal row2 As Integer, _
       ByVal column2 As Integer, _
       ByVal includeFreeFloating As Boolean, _
       Optional ByVal overlaped As Boolean _
    ) As DrawingObject()
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim row As Integer
    Dim column As Integer
    Dim row2 As Integer
    Dim column2 As Integer
    Dim includeFreeFloating As Boolean
    Dim overlaped As Boolean
    Dim value() As DrawingObject
     
    value = instance.QueryObjects(row, column, row2, column2, includeFreeFloating, overlaped)

    Parameters

    row
    The top row index of the cell range.
    column
    The left column index of the cell range.
    row2
    The bottom row index of the cell range.
    column2
    The right column index of the cell range.
    includeFreeFloating
    true to also get free floating drawing objects.
    overlaped
    true to return the drawing object which is overlaped by the cell range.

    Return Value

    The array of drawing objects to paint
    Remarks
    Returned drawing objects must be sorted by painting order.
    See Also