Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CompareMethod Enumeration
Collapse the table of content
Expand the table of content

CompareMethod Enumeration

.NET Framework 4.6 and 4.5

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.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public enum CompareMethod

Member nameDescription
EqualToIf the data point value is equal to the compared value, the point is filtered.
LessThanIf the data point value is less than 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.
MoreThanIf the data point value is more than the compared value, the point is filtered.
MoreThanOrEqualToIf the data point value more 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.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft