SheetXL - v0.3.20
    Preparing search index...

    Class ThemeCollection

    Collection of themes

    Implements

    Index

    Constructors

    • Parameters

      • _json: JSON = null
      • isReadOnly: boolean = false

      Returns ThemeCollection

    Methods

    • Returns the theme for the given name.

      Parameters

      • name: string

      Returns ITheme

      Will try to return:

      1. The custom theme for the name
      2. The builtin theme for the name.
      3. nul if it doesn't exist.
    • Returns the total items available.

      Returns number

      Useful as a quick escape for search.

    • Returns all themes that match the search criteria.

      Parameters

      • Optionaloptions: SearchOptions

        IThemeCollection.SearchOptions

      Returns ITheme[]

      • If no search criteria is provided, all items will be returned.
      • Generates a new array so this can be mutated without affecting the internal state.