Public Types | |
| enum | SortStyle |
| Types of sorts (case insensitive text, integer number, floating-point number). | |
Public Member Functions | |
| ListViewColumnSorter () | |
| Class constructor. Initializes various elements. | |
| int | Compare (object x, object y) |
| This method is inherited from the IComparer interface. It compares the two objects passed using a comparison based on the current SortStyle. | |
Properties | |
| int | SortColumn [get, set] |
| Gets or sets the number of the column to which to apply the sorting operation (Defaults to '0'). | |
| SortOrder | Order [get, set] |
| Gets or sets the order of sorting to apply (for example, 'Ascending' or 'Descending'). | |
| SortStyle | SortType [get, set] |
| Gets or sets the type of sort (integer, floating-point, string or case-insensitive string). | |
Private Attributes | |
| int | ColumnToSort |
| Specifies the column to be sorted. | |
| SortOrder | OrderOfSort |
| Specifies the order in which to sort (i.e. 'Ascending'). | |
| Comparer | ObjectCaseCompare |
| Case sensitive comparer object. | |
| CaseInsensitiveComparer | ObjectCompare |
| Case insensitive comparer object. | |
| SortStyle | sorting = SortStyle.String |
| Current sort type. | |
Sorts by text, integer or float. Base code obtained from http://support.microsoft.com/kb/319401/EN-US/
| int BRISC::GUI::ListViewColumnSorter::Compare | ( | object | x, | |
| object | y | |||
| ) | [inline] |
This method is inherited from the IComparer interface. It compares the two objects passed using a comparison based on the current SortStyle.
| x | First object to be compared | |
| y | Second object to be compared |
1.4.7