Table of Contents

Method GetComparison

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetComparison(FileListBoxColumn, bool)

Retrieves a comparison delegate for sorting FileListBoxItem objects based on the specified column.

public virtual Comparison<FileListBoxItem>? GetComparison(FileListBoxColumn column, bool isAscending)

Parameters

column FileListBoxColumn

The column to use for determining the comparison logic. Must be a value of FileListBoxColumn.

isAscending bool

The direction in which to sort the items.

Returns

Comparison<FileListBoxItem>

A Comparison<T> delegate for comparing FileListBoxItem objects based on the specified column. Returns null if the specified column does not have an associated comparison logic.