menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GroupComparer - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GroupComparer

    Inheritance
    System.Object
    GroupComparer
    Implements
    System.Collections.Generic.IComparer<Group>
    Namespace: Syncfusion.Data
    Assembly: Syncfusion.Data.Portable.dll
    Syntax
    public class GroupComparer : Object, IComparer<Group>

    Constructors

    GroupComparer()

    Initializes a new instance of the GroupComparer class.

    Declaration
    public GroupComparer()

    Properties

    SortDirection

    Gets or sets the direction of sorting.

    Declaration
    public ListSortDirection SortDirection { get; set; }
    Property Value
    Type Description
    ListSortDirection

    The direction of sorting.

    Methods

    Compare(Group, Group)

    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

    Declaration
    public int Compare(Group group1, Group group2)
    Parameters
    Type Name Description
    Group group1

    The first object to compare.

    Group group2

    The second object to compare.

    Returns
    Type Description
    System.Int32

    Returns a value Less than zero, if group1 is less than group2.

    Returns Zero, if group1 equals group2.

    Returns a value Greater than zero, group1 is greater than group2.

    Implements

    System.Collections.Generic.IComparer<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved