Skip to main content

NotOperator Class

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

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v21.2.dll

Declaration

public sealed class NotOperator :
    UnaryOperator

Example

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;

The following code snippets (auto-collected from DevExpress Examples) contain references to the NotOperator class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also