SheetXL - v0.3.20
    Preparing search index...

    Interface ITableStyle

    Represents a style applied to tables, with methods for retrieving style properties, checking its usage in different contexts, and identifying built-in styles.

    interface ITableStyle {
        isITableStyle: true;
        delete(): void;
        getName(): string;
        getProperties(): Readonly<ITableStyle.Properties>;
        getRanged(table: ITable): ICellRanged<IStyle.Properties<Serializable>>;
        isBuiltIn(): boolean;
        isShownInPivotStyles(): boolean;
        isShownInTableStyles(): boolean;
        toJSON(): JSON;
    }

    Implemented by

    Index

    Properties

    isITableStyle: true

    For runtime type checking.

    Methods

    • Delete the style from the collection.

      Returns void

      This will only remove if the style is not a built-in style.

    • Returns the name of the table style.

      Returns string

      The name of the table style as a string.

    • Returns a ranged interface for applying this style to a specific table.

      Parameters

      • table: ITable

        The target ITable to which this style will be applied.

      Returns ICellRanged<IStyle.Properties<Serializable>>

      An ICellRanged interface containing properties for IStyle.

    • Indicates whether this style is a built-in, predefined style.

      Returns boolean

      true if the style is a built-in style; otherwise, false.

    • Indicates whether this style appears in the list of pivot table styles available for selection.

      Returns boolean

      true if the style is shown in the pivot table styles list; otherwise, false.

    • Indicates whether this style appears in the list of table styles available for selection.

      Returns boolean

      true if the style is shown in the table styles list; otherwise, false.

    • Serializes the table style to JSON format.

      Returns JSON

      A ITableStyle.JSON representation of the style.