[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ValidationOperator

ValidationOperator Enum

Specifies the operator used by data validation to compare a formula against a cell value or, for Between and NotBetween, to compare two formulas.

Use this enum with IValidation to define how a validation rule evaluates input. Between and NotBetween require both formula arguments, while the other operators use only the first formula.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public enum ValidationOperator
Public Enum ValidationOperator
Examples
IRange range = worksheet.Range["A1"];
range.Validation.Add(
    ValidationType.Whole, ValidationAlertStyle.Stop, ValidationOperator.Between, 1, 10);

Fields

Name Description
Between

Specifies between. Can only be used if two formulas are provided.

Equal

Specifies equal.

Greater

Specifies greater than.

GreaterEqual

Specifies greater than or equal to.

Less

Specifies less than.

LessEqual

Specifies less than or equal to.

NotBetween

Specifies not between. Can only be used if two formulas are provided.

NotEqual

Specifies not equal.