~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Main/ICSharpCode.SharpDevelop.Widgets/Project/ListViewSorting/IListViewItemComparer.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using System.Windows.Forms;
 
6
 
 
7
namespace ICSharpCode.SharpDevelop.Widgets.ListViewSorting
 
8
{
 
9
        /// <summary>
 
10
        /// Provides the ability to compare two ListViewItems with regard to
 
11
        /// a specific column.
 
12
        /// </summary>
 
13
        public interface IListViewItemComparer
 
14
        {
 
15
                /// <summary>
 
16
                /// Compares two ListViewItems with regard to the specified column.
 
17
                /// </summary>
 
18
                /// <returns>
 
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"/>.
 
22
                /// </returns>
 
23
                /// <remarks>
 
24
                /// The implementation must always compare the specified items in ascending order.
 
25
                /// </remarks>
 
26
                int Compare(ListViewItem lhs, ListViewItem rhs, int column);
 
27
        }
 
28
}