Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / CellRange Class / Contains Method / Contains(Int32,Int32,Int32,Int32) Method
The row index of the first cell in the range.
The column index of the first cell in the range.
The number of rows in the range.
The number of columns in the range.


In This Topic
    Contains(Int32,Int32,Int32,Int32) Method
    In This Topic
    Determines whether the range of cells contains a specified range of cells.
    Syntax
    'Declaration
     
    Public Overloads Function Contains( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As CellRange
    Dim row As Integer
    Dim column As Integer
    Dim rowCount As Integer
    Dim columnCount As Integer
    Dim value As Boolean
     
    value = instance.Contains(row, column, rowCount, columnCount)
    public bool Contains( 
       int row,
       int column,
       int rowCount,
       int columnCount
    )

    Parameters

    row
    The row index of the first cell in the range.
    column
    The column index of the first cell in the range.
    rowCount
    The number of rows in the range.
    columnCount
    The number of columns in the range.

    Return Value

    true if the cell range contains the specified cell range; otherwise, false.
    See Also