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
Initializes a new sort condition that orders by cell text foreground color, targeting a specific color.
public ForeColorSortCondition(int relativeIndex, ThemableColor color, SortOrder sortOrder)
Gets the index of the row or column that is key for sorting relative to the sorted range.
colorThemableColorThe color.
sortOrderSortOrderThe sort order.
Properties
Gets the target text foreground color used to identify cells during sorting.
public ThemableColor Color { get; }
The color.
Gets the comparer that determines sort order by matching cell text foreground colors against the target color.
public override IComparer<SortValue> Comparer { get; }
The comparer used for sorting.
Overrides:
Gets the cell property definition that identifies the text foreground color used for sorting.
protected override IPropertyDefinition<ThemableColor> PropertyDefinition { get; }
The property definition of the property which is used for sorting.
Overrides:
Methods
Determines whether the specified sort condition has the same color, relative index, and sort order.
Gets the resolved text foreground color from the specified cell, with theme colors expanded to their local RGB values.