Excel for WPF and Silverlight
Contains Method (XLNamedRange)

C1.WPF.Excel Namespace > XLNamedRange Class : Contains Method
The worksheet containing the cell.
The row index of the cell.
The column index of the cell.
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

Reference

XLNamedRange Class
XLNamedRange Members