Represents a sort condition which will sort cells based on their fonts colors.

This sort condition specifies a single color. Cells of this color will be moved to the beginning of the data range for the ascending sort direction and moved to the end of the data range for the descending sort direction. All matching cells will be kept in their same relative order to each other. In addition, all non-matching cells will be kept in their same relative order to each other.

See

Hierarchy

Hierarchy

Implements

  • IColorSortCondition

Constructors

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get fontColorInfo(): WorkbookColorInfo
  • Gets the WorkbookColorInfo which describes the color by which the cells should be sorted.

    Cells of this color will be moved to the beginning of the data range for the ascending sort direction and moved to the end of the data range for the descending sort direction. All matching cells will be kept in their same relative order to each other. In addition, all non-matching cells will be kept in their same relative order to each other.

    The WorkbookColorInfo which describes the color by which the cells should be sorted.

    See

    Returns WorkbookColorInfo

  • get sortDirection(): SortDirection
  • Gets the value which indicates the sort direction represented by the sort condition. Either SortDirection.Ascending or SortDirection.Descending.

    Returns SortDirection

Methods

  • Determines whether the FontColorSortCondition is equal to the specified object.

    Returns

    True if the object is equal to this instance; False otherwise.

    Parameters

    • obj: any

      The object to test for equality.

    Returns boolean

  • Gets the hash code for the FontColorSortCondition.

    Returns

    A number which can be used to hash this instance.

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns boolean

  • Parameters

    • a: any
    • b: any

    Returns boolean

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns number

  • Parameters

    • a: any
    • b: any

    Returns boolean