SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface IBorders

    The borders of a cell or a range: the four outer edges, the two diagonals, and the inner horizontal and vertical rules between the cells of a range.

    interface IBorders {
        isIBorders: true;
        getBottom(): IBorders.IStroke;
        getDiagonalDown(): IBorders.IStroke;
        getDiagonalUp(): IBorders.IStroke;
        getHorizontal(): IBorders.IStroke | null;
        getLeft(): IBorders.IStroke;
        getProperties(): IBorders.Properties;
        getRight(): IBorders.IStroke;
        getTop(): IBorders.IStroke;
        getVertical(): IBorders.IStroke | null;
        isEmpty(): boolean;
        setBottom(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setDiagonalDown(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setDiagonalUp(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setHorizontal(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setLeft(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setOutline(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setRight(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setTop(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        setVertical(
            stroke:
                | string
                | IBorders.IStroke
                | Partial<
                    {
                        color?: | string
                        | IColor
                        | Partial<
                            {
                                adjust: | string
                                | ((adjustments: readonly Adjustment[]) => IColor)
                                | Partial<{}>
                                | null;
                                getAdjustments:
                                    | string
                                    | (() => readonly Adjustment[])
                                    | Partial<{}>
                                    | null;
                                getBaseColor: string | (() => IColor) | Partial<{}> | null;
                                getLastColor: string | (() => string | null) | Partial<{}> | null;
                                getType: string | (() => IColor.Type) | Partial<{}> | null;
                                getVal: string | (() => string) | Partial<{}> | null;
                                isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                                isIColor: string | true | null;
                                toBlackOrWhite:
                                    | string
                                    | ((darkMode?: boolean, threshold?: number) => IColor)
                                    | Partial<{}>
                                    | null;
                                toCSS:
                                    | string
                                    | ((mode?: CSSMode, alpha?: boolean) => string)
                                    | Partial<{}>
                                    | null;
                                toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                                toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                                toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                                toString: string | (() => string) | Partial<{}> | null;
                            },
                        >
                        | null;
                        style?: string
                        | null;
                    },
                >
                | null,
            options?: UpdateOptions,
        ): IBorders;
        toJSON(): IBorders.JSON;
    }
    Index
    isIBorders: true

    For runtime type checking.

    • The inner horizontal rule — the border between rows, not around them.

      Returns IBorders.IStroke | null

      The authored inner stroke, or null when there is none to report.

      IBorders.getVertical for when null is returned.

    • The inner vertical rule — the border between columns, not around them.

      Returns IBorders.IStroke | null

      The authored inner stroke, or null when there is none to report.

      An extent-scoped read, matching setVertical. Inner rules only exist across more than one column, so they are a property of a range, never of a cell — which is why this is the one border read that can answer null:

      • the border was materialized from a cell (or a 1-column range) — a cell has no inside;
      • the queried range is not covered by a single authored border block, so there is no one answer — re-query a range that is, or partition with getRegions('borders') to find one;
      • no inner rule is authored. Authoring None deletes the property rather than storing it, so "explicitly none" and "never set" are the same stored state and cannot be told apart — by design, not by omission.

      The edges (getLeft/getRight/…) are unaffected: a cell read still decomposes an inner rule into the per-cell edges it produces, which is what a cell actually carries.

    • If there are any borders that are not none.

      Returns boolean

    • Sets the bottom border.

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

      Returns IBorders

    • Sets the diagonalDown border.

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

      Returns IBorders

    • Sets the diagonalUp border.

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

      Returns IBorders

    • Sets the horizontal borders for the range

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

        Update options.

      Returns IBorders

      This has no effect on a 1x1 range or cell.

    • Sets the left border.

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

      Returns IBorders

    • Sets the border outline for the range

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

        Update options.

      Returns IBorders

    • Sets the right border.

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

      Returns IBorders

    • Sets the top border.

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

      Returns IBorders

    • Sets the vertical borders for the range

      Parameters

      • stroke:
            | string
            | IBorders.IStroke
            | Partial<
                {
                    color?: | string
                    | IColor
                    | Partial<
                        {
                            adjust: | string
                            | ((adjustments: readonly Adjustment[]) => IColor)
                            | Partial<{}>
                            | null;
                            getAdjustments:
                                | string
                                | (() => readonly Adjustment[])
                                | Partial<{}>
                                | null;
                            getBaseColor: string | (() => IColor) | Partial<{}> | null;
                            getLastColor: string | (() => string | null) | Partial<{}> | null;
                            getType: string | (() => IColor.Type) | Partial<{}> | null;
                            getVal: string | (() => string) | Partial<{}> | null;
                            isEqual: string | ((other: any) => boolean) | Partial<{}> | null;
                            isIColor: string | true | null;
                            toBlackOrWhite:
                                | string
                                | ((darkMode?: boolean, threshold?: number) => IColor)
                                | Partial<{}>
                                | null;
                            toCSS:
                                | string
                                | ((mode?: CSSMode, alpha?: boolean) => string)
                                | Partial<{}>
                                | null;
                            toHex: string | ((darkMode?: boolean) => HEX) | Partial<{}> | null;
                            toHSLA: string | ((darkMode?: boolean) => HSLA) | Partial<{}> | null;
                            toRGBA: string | ((darkMode?: boolean) => RGBA) | Partial<{}> | null;
                            toString: string | (() => string) | Partial<{}> | null;
                        },
                    >
                    | null;
                    style?: string
                    | null;
                },
            >
            | null

        The border stroke.

      • Optionaloptions: UpdateOptions

        Update options.

      Returns IBorders

      This has no effect on a 1x1 range or cell.