C# Класс ZForge.Controls.XPTable.Sorting.ComparerBase

Base class for comparers used to sort the Cells contained in a TableModel
Наследование: IComparer
Показать файл Открыть проект

Открытые методы

Метод Описание
Compare ( object a, object b ) : int

Compares two objects and returns a value indicating whether one is less than, equal to or greater than the other.

ComparerBase ( TableModel tableModel, int column, SortOrder sortOrder ) : System

Initializes a new instance of the ComparerBase class with the specified TableModel, Column index and SortOrder

Защищенные методы

Метод Описание
CompareCells ( Cell cell1, Cell cell2 ) : int

Compares two cells and returns a value indicating whether one is less than, equal to or greater than the other. Both cells are non-null;

Описание методов

Compare() публичный Метод

Compares two objects and returns a value indicating whether one is less than, equal to or greater than the other.
public Compare ( object a, object b ) : int
a object First object to compare
b object Second object to compare
Результат int

CompareCells() защищенный абстрактный Метод

Compares two cells and returns a value indicating whether one is less than, equal to or greater than the other. Both cells are non-null;
protected abstract CompareCells ( Cell cell1, Cell cell2 ) : int
cell1 ZForge.Controls.XPTable.Models.Cell
cell2 ZForge.Controls.XPTable.Models.Cell
Результат int

ComparerBase() публичный Метод

Initializes a new instance of the ComparerBase class with the specified TableModel, Column index and SortOrder
public ComparerBase ( TableModel tableModel, int column, SortOrder sortOrder ) : System
tableModel ZForge.Controls.XPTable.Models.TableModel The TableModel that contains the data to be sorted
column int The index of the Column to be sorted
sortOrder SortOrder Specifies how the Column is to be sorted
Результат System