Version

Contains(WorksheetCell) Method

Determines whether the specified cell has a data validation rule applied to it.
Syntax
'Declaration
 
Public Overloads Function Contains( _
   ByVal cell As WorksheetCell _
) As Boolean
public bool Contains( 
   WorksheetCell cell
)

Parameters

cell
The cell to test.

Return Value

True if the cell has a data validation rule applied; False otherwise.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when cell is null.
System.ArgumentExceptionOccurs when the cell is from a worksheet other than this collection.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also