Excel for WPF | ComponentOne
C1.Silverlight.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 Integer, _
       ByVal col As Integer _
    ) As Boolean
    public bool Contains( 
       XLSheet sheet,
       int row,
       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