BRISC::GUI::ListViewColumnSorter Class Reference

Custom sorter class for nodule list views. More...

List of all members.

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.


Detailed Description

Custom sorter class for nodule list views.

Sorts by text, integer or float. Base code obtained from http://support.microsoft.com/kb/319401/EN-US/


Member Function Documentation

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.

Parameters:
x First object to be compared
y Second object to be compared
Returns:
The result of the comparison. "0" if equal, negative if 'x' is less than 'y' and positive if 'x' is greater than 'y'


The documentation for this class was generated from the following file:
Generated on Wed Aug 16 17:13:32 2006 by  doxygen 1.4.7