Collection class for objects which derive from ConditionBase.

To enable a conditional format on a region of worksheet cells, add a ConditionBase-derived instance to this collection.

This collection exposes an Add method for each type of conditional format available.

For example, to add a conditional format which is based on a value and a logical operator, use the addOperatorCondition method.

The conditional formatting classes which derive from ConditionalFormatBase expose a CellFormat property, which in turn exposes properties which control the visual attributes of cells which meet the criteria defined by the condition. This format is applied to cells with a value which passes the condition.

See

Hierarchy

Hierarchy

  • Base
    • ConditionalFormatCollection

Implements

Constructors

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get count(): number
  • Returns the total number of items in the collection.

    Returns number

Methods

  • Removes all items from the collection.

    Returns void

  • Returns true if the collection contains the condition

    Parameters

    Returns boolean

  • Parameters

    • other: any

    Returns boolean

  • Returns any

  • Returns any

  • Returns number

  • Gets the index of the item in the collection

    Returns

    The index or -1 if the item is not in the collection

    Parameters

    Returns number

  • Indexer

    Returns

    The item at the specified index

    Throws

    IndexOutOfRangeException If the index is negative or greater than or equal to count

    Parameters

    • a: number

    Returns ConditionBase

  • Removes an item from the collection

    Returns

    true is the item was removed or false if the item wasn't in the collection

    Parameters

    Returns boolean

  • Removes an item from the collection at a specifoed index

    Parameters

    • index: number

      The zero based index in the collection

    Returns void

  • 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

  • Returns void