Search Results for

    Show / Hide Table of Contents

    TExcelFile.SetColorTheme Method

    Overloads

    • TExcelFile.SetColorTheme(TThemeColor, TDrawingColor)
    • TExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor)

    TExcelFile.SetColorTheme(TThemeColor, TDrawingColor)

    Changes a color on the Excel theme. Only has effect in Excel 2007.

    This method is provided to not break compatibility with older FlexCel versions. In newer code, you should use SetColorTheme(TPrimaryThemeColor, TDrawingColor) instead. If you want to change the full theme, use GetTheme and SetTheme

    Syntax

    Unit: FlexCel.Core

    procedure TExcelFile.SetColorTheme(const themeColor: TThemeColor; const value: TDrawingColor); overload; virtual; abstract;

    Parameters

    <-> Parameter Type Description
    const themeColor TThemeColor Color of the theme to change. The only values that make sense are those included in TPrimaryThemeColor. Colors outside that range will be mapped to the nearest color: For example Background1 will be mapped to Light1 and ForeGround1 will be mapped to Dark1.
    const value TDrawingColor Color to set.

    See also

    • TExcelFile

    TExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor)

    Changes a color on the Excel theme. Only has effect in Excel 2007.

    If you want to change the full theme, use GetTheme and SetTheme

    Syntax

    Unit: FlexCel.Core

    procedure TExcelFile.SetColorTheme(const themeColor: TPrimaryThemeColor; const value: TDrawingColor); overload; virtual; abstract;

    Parameters

    <-> Parameter Type Description
    const themeColor TPrimaryThemeColor Color of the theme to change.
    const value TDrawingColor Color to set.

    See also

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