Search Results for

    Show / Hide Table of Contents

    TExcelColor.FromIndex Method

    Overloads

    • TExcelColor.FromIndex(Integer)
    • TExcelColor.FromIndex(Integer, Double)

    TExcelColor.FromIndex(Integer)

    Returns a color class with a specified color index. For compatibility with old code, you can enter any index here. If the value is less than 1 or more than 56, it will assume automatic color.

    Syntax

    Unit: FlexCel.Core

    class function TExcelColor.FromIndex(const index: Integer): TExcelColor; static; overload;

    Parameters

    <-> Parameter Type Description
    const index Integer Index to the color palette. (1 based)

    See also

    • TExcelColor

    TExcelColor.FromIndex(Integer, Double)

    Returns a color class with a specified color index. For compatibility with old code, you can enter any index here. If the value is less than 1 or more than 56, it will assume automatic color.

    Syntax

    Unit: FlexCel.Core

    class function TExcelColor.FromIndex(const index: Integer; const tint: Double): TExcelColor; static; overload;

    Parameters

    <-> Parameter Type Description
    const index Integer Index to the color palette. (1 based)
    const tint Double Tint for the color.




    If you try to set a value less than -1 it will be stored as -1, and values bigger than 1 as 1. No exceptions will be raised.

    See also

    • TExcelColor
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com