Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / QueryObjects(Int32,Int32,Int32,Int32,Boolean,Boolean) 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 overlapped by the cell range.


In This Topic
    QueryObjects(Int32,Int32,Int32,Int32,Boolean,Boolean) 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 overlapped 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 overlapped As Boolean
    Dim value() As DrawingObject
     
    value = instance.QueryObjects(row, column, row2, column2, includeFreeFloating, overlapped)

    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.
    overlapped
    true to return the drawing object which is overlapped 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