ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLNamedRange Class / Contains Method
The worksheet containing the cell.
The row index of the cell.
The column index of the cell.

In This Topic
    Contains Method (XLNamedRange)
    In This Topic
    Determines whether the range contains a specific cell.
    Syntax
    'Declaration
     
    Public Function Contains( _
       ByVal sheet As XLSheet, _
       ByVal row As System.Integer, _
       ByVal col As System.Integer _
    ) As System.Boolean
    public System.bool Contains( 
       XLSheet sheet,
       System.int row,
       System.int col
    )

    Parameters

    sheet
    The worksheet containing the cell.
    row
    The row index of the cell.
    col
    The column index of the cell.

    Return Value

    True if the current named range contains the specified cell, false otherwise.
    See Also