Version

Remove(DataValidationRule) Method

Removes the specified rule from the Worksheet.
Syntax
'Declaration
 
Public Overloads Function Remove( _
   ByVal rule As DataValidationRule _
) As Boolean
public bool Remove( 
   DataValidationRule rule
)

Parameters

rule
The rule which should be removed.

Return Value

True if the rule was contained on the Worksheet before removal; False otherwise.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when rule is null.
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