This documentation is archived and is not being maintained.

CompareMethod Enumeration

Specifies the type of comparison to be used when filtering data. This enumeration is used by the Filter method definitions in the DataManipulator class that take the CompareMethod argument.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public enum CompareMethod

Member nameDescription
MoreThanIf the data point value is more than the compared value, the point is filtered.
LessThanIf the data point value is less than the compared value, the point is filtered.
EqualToIf the data point value is equal to the compared value, the point is filtered.
MoreThanOrEqualToIf the data point value more than or equal to the compared value, the point is filtered.
LessThanOrEqualToIf the data point value is less than or equal to the compared value, the point is filtered.
NotEqualToIf the data point value is not equal to the compared value, the point is filtered.

The CompareMethod enumeration represents a comparison type for certain filtering operations.

NoteNote

By default, if the filtering criteria are met, a data point is either removed or marked as empty. However, data points can be filtered even if they do not match the filtering criteria, by setting the FilterMatchedPoints property to false.

.NET Framework

Supported in: 4

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: