A ListView item sorter that can sort by its Groups
and by one or more columns.
To use, call the Sort()()() method to perform the sort (
rather than the ListView's Sort()()() method).
| C# |
public class ListViewItemSorter : IComparer
| All Members | Constructors | Methods | Events | ||
| Icon | Member | Description |
|---|---|---|
| ListViewItemSorter(ListView) |
Creates a new instance.
| |
| ListViewItemSorter(ListView, Int32) |
Creates a new instance.
| |
| ListViewItemSorter(ListView, array<Int32>[]()[]) |
Creates a new instance.
| |
| Compare(Object, Object) |
Compares two items for equality.
| |
| ComparingGroups |
Occurs when two groups are being compared. You can handle this event to control the result
of the comparison.
| |
| ComparingItems |
Occurs when two items are being compared. You can handle this event to control the result
of the comparison.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnComparingGroups(ListViewItemSorter..::.ComparingGroupsEventArgs) | ||
| OnComparingItems(ListViewItemSorter..::.ComparingItemsEventArgs) | ||
| Resort(Int32) |
Sorts the items in the ListView by the given column index,
reversing the sort if the list is already being sorted by that column.
(Group sorting is unaffected.)
| |
| Sort()()() |
Sorts the groups and items in the ListView.
| |
| ToString()()() | (Inherited from Object.) |
| Object | |
| ListViewItemSorter | |