ClassForeColorSortCondition
Sort condition that orders rows or columns by cell text foreground color, placing cells with a specified color first or last.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Sorting
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public sealed class ForeColorSortCondition : OrderedSortConditionBase<ThemableColor>, ISortCondition
Inheritance: objectSortConditionBase<ThemableColor>OrderedSortConditionBase<ThemableColor>ForeColorSortCondition
Implements:
Inherited Members
Constructors
ForeColorSortCondition(int, ThemableColor, SortOrder)
Initializes a new sort condition that orders by cell text foreground color, targeting a specific color.
Declaration
public ForeColorSortCondition(int relativeIndex, ThemableColor color, SortOrder sortOrder)
Parameters
relativeIndex
Gets the index of the row or column that is key for sorting relative to the sorted range.
color
The color.
sortOrder
The sort order.
Properties
Color
Gets the target text foreground color used to identify cells during sorting.
Declaration
public ThemableColor Color { get; }
Property Value
The color.
Comparer
Gets the comparer that determines sort order by matching cell text foreground colors against the target color.
PropertyDefinition
Gets the cell property definition that identifies the text foreground color used for sorting.
Declaration
protected override IPropertyDefinition<ThemableColor> PropertyDefinition { get; }
Property Value
IPropertyDefinition<ThemableColor>
The property definition of the property which is used for sorting.
Overrides
Methods
Equals(object)
Determines whether the specified sort condition has the same color, relative index, and sort order.
GetHashCode()
Computes a hash code combining the target color and base sort condition properties.
GetValue(Cells, int, int)
Gets the resolved text foreground color from the specified cell, with theme colors expanded to their local RGB values.