JamBaseShellListViewCustomCompare Method |
Compares the given items by the content of the subitems at the SortColumn index.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax protected int CustomCompare(
ListViewItem pItem1,
ListViewItem pItem2,
int pSortOrder
)
Protected Function CustomCompare (
pItem1 As ListViewItem,
pItem2 As ListViewItem,
pSortOrder As Integer
) As Integer
protected:
int CustomCompare(
ListViewItem^ pItem1,
ListViewItem^ pItem2,
int pSortOrder
)
member CustomCompare :
pItem1 : ListViewItem *
pItem2 : ListViewItem *
pSortOrder : int -> int
Parameters
- pItem1
- Type: System.Windows.FormsListViewItem
The first item. - pItem2
- Type: System.Windows.FormsListViewItem
The second item - pSortOrder
- Type: SystemInt32
The SortOrder. 1 for Ascending, -1 for Descending.
Return Value
Type:
Int32
Returns -1 if x is less than y, 0 if x is equal to y and 1 if x is greater than y.
Remarks Method is only working correctly if the subitem that is compared is loaded!
See Also