A collection of display text values.

See

  • [[WorksheetCell.getText]]
  • [[WorksheetRow.getCellText]]
  • [[FixedValuesFilter.displayValues]]

Hierarchy

Hierarchy

  • Base
    • DisplayValueCollection

Implements

  • IList$1<string>

Constructors

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get count(): number
  • Gets the number of display text values in the collection.

    Returns number

Methods

  • Returns EnumeratorWrapper<string>

  • Adds a display text value to the collection.

    Throws

    [[ArgumentNullException]] 'item' is null or empty.

    Throws

    [[ArgumentException]] 'item' matches another value in the collection. Values are compared case-insensitively.

    Parameters

    • item: string

      The display text value to add to the collection.

    Returns void

  • Clears the collection.

    Throws

    [[InvalidOperationException]] The collection is owned by a [[FixedValuesFilter]] which only allowed the values in the collection. Clearing the collection would prevent the filter from including any values, which is not allowed for a FixedValuesFilter.

    Returns void

  • Determines whether the specified value is in the collection.

    Display text values are compared case-insensitively.

    Parameters

    • item: string

      The display text value to find in the collection.

    Returns boolean

  • Parameters

    • other: any

    Returns boolean

  • Returns number

  • Gets the index of the specified display text value in the collection.

    Parameters

    • item: string

      The display text value to find in the collection.

    Returns number

  • Inserts a display text value into the collection.

    Throws

    [[ArgumentNullException]] 'item' is null or empty.

    Throws

    [[ArgumentException]] 'item' matches another value in the collection. Values are compared case-insensitively.

    Throws

    [[ArgumentOutOfRangeException]] 'index' is less than 0 or greater than [[count]].

    Parameters

    • index: number

      The 0-based index where the value should be inserted.

    • item: string

      The display text value to insert into the collection.

    Returns void

  • Gets or sets the display text value at the specified index.

    Throws

    [[ArgumentOutOfRangeException]] 'index' is less than 0 or greater than or equal to [[count]].

    Throws

    [[ArgumentNullException]] The value assigned is null.

    Throws

    [[ArgumentException]] The value assigned matches another value in the collection. Values are compared case-insensitively.

    Parameters

    • a: number
    • Optional b: string

    Returns string

  • Returns Base

  • Removes a display text value from the collection.

    Display text values are compared case-insensitively.

    Parameters

    • item: string

      The display text value to remove from the collection.

    Returns boolean

  • Removes the display text value at the specified index.

    Throws

    [[ArgumentOutOfRangeException]] 'index' is less than 0 or greater than or equal to [[count]].

    Throws

    [[InvalidOperationException]] This operation removes the last item in the collection and it is owned by a [[FixedValuesFilter]] which only allowed the values in the collection. Clearing the collection would prevent the filter from including any values, which is not allowed for a FixedValuesFilter.

    Parameters

    • index: number

      The 0-based index of the value to remove.

    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