Compares best-fit width entries by either their measured width or stored count.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
C#
public class WidthCountPairComparer
Inheritance: objectWidthCountPairComparer
Constructors
Properties
Gets or sets whether comparisons use width rather than the stored count.
C#
public bool CompareWidth { get; set; }
Methods
Compares only the selected metric; entries with the same metric compare equal even if their other value differs.
C#
public int Compare(WidthCountPair x, WidthCountPair y)
The first width/count entry.
yWidthCountPairThe second width/count entry.
Returns:A negative value, zero, or a positive value according to the selected metric's comparison.