Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / ChartPrimitiveComparer Class / Compare Method
The first primitive to compare.
The second primitive to compare.


In This Topic
    Compare Method (ChartPrimitiveComparer)
    In This Topic
    Compares two ChartPrimitive objects by the value of the X property of their DataPoint.
    Syntax
    'Declaration
     
    Public Function Compare( _
       ByVal x As Object, _
       ByVal y As Object _
    ) As Integer
    'Usage
     
    Dim instance As ChartPrimitiveComparer
    Dim x As Object
    Dim y As Object
    Dim value As Integer
     
    value = instance.Compare(x, y)
    public int Compare( 
       object x,
       object y
    )

    Parameters

    x
    The first primitive to compare.
    y
    The second primitive to compare.

    Return Value

    -1 if x is less than y, 1 if x is greater than y, 0 if they are equal or either is null.
    Requirements

    Target Platforms: Windows 11, Windows 10, 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

    See Also