SheetXL - v0.3.20
    Preparing search index...

    Interface ICellRanged<P>

    Represents an interface for ranged items with customizable properties, supporting operations such as retrieving properties at a given coordinate, cloning with updates, splitting, and merging.

    The type representing the JSON-serializable representation of the range.

    interface ICellRanged<P> {
        cloneWithUpdate(updates: ResolvableProperties<P>): this;
        getCoords(): Readonly<IRange.Coords>;
        getPropertiesAt(
            rowIndex: number,
            colIndex: number,
            value: Scalar,
        ): Readonly<P>;
    }

    Type Parameters

    • P

      The type representing the properties associated with the range.

    Hierarchy (View Summary)

    Index

    Methods

    • Creates a new instance of the range with specified updates applied.

      Parameters

      Returns this

      A new ICellRanged instance with the applied updates.

    • Retrieves the coordinates for the range.

      Returns Readonly<IRange.Coords>

      The range's coordinates.

      The coordinates are not the coordinates where this is contained but the coordinates for access getPropertiesAt.

    • Retrieves the properties associated with a specified cell within the range.

      Parameters

      • rowIndex: number

        The row index within the range.

      • colIndex: number

        The column index within the range.

      • value: Scalar

        The value at the coordinates.

      Returns Readonly<P>

      The properties associated with the specified cell as a read-only object.