1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Windows.Forms;
7
namespace ICSharpCode.SharpDevelop.Widgets.ListViewSorting
10
/// Provides the ability to compare two ListViewItems with regard to
11
/// a specific column.
13
public interface IListViewItemComparer
16
/// Compares two ListViewItems with regard to the specified column.
19
/// Less than zero if <paramref name="lhs"/> is less than <paramref name="rhs"/>.
20
/// Zero if <paramref name="lhs"/> is equal to <paramref name="rhs"/>.
21
/// Greater than zero if <paramref name="lhs"/> is greater than <paramref name="rhs"/>.
24
/// The implementation must always compare the specified items in ascending order.
26
int Compare(ListViewItem lhs, ListViewItem rhs, int column);