NotOperator Class

Represents a logical NOT operation which is performed on the operand.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v19.2.dll

Declaration

public sealed class NotOperator :
    UnaryOperator
Public NotInheritable Class NotOperator
    Inherits UnaryOperator

Examples

This sample code selects customers who are younger than 20 years old, and older than 25.

The image below shows the result:

NotOperatorSample

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

// ...

CriteriaOperator filter = new NotOperator(new BetweenOperator("Age", 20, 25));
xpCustomers.Filter = filter;

Inheritance

See Also