Search Results for

    Show / Hide Table of Contents

    TFlxFillPattern Structure

    Fill pattern and color for the background of a cell.

    Syntax

    Namespace: FlexCel.Core

    public struct TFlxFillPattern

    Fields

    Name Description
    Pattern Fill style.
    FgColor Color for the foreground of the pattern. It is used when the pattern is solid, but not when it is automatic.
    Important: This color is what you need, in the most common case where the pattern is solid. BgColor is ignored for solid patterns.


    This can look counterintuitive, but both FgColor and BgColor are colors for the background of the cell (the fill pattern).
    To change the "foreground color" of a cell, you change the font color, not FgColor.
    So why are there 2 colors for the background? This is because Excel accepts fill patterns, where for example you might have a fill with a red background and black horizontal lines over it.
    Fot that case, BgColor would be red and FgColor will be black....[more]
    BgColor Color for the background of the pattern. If the pattern is solid it has no effect, but it is used when pattern is automatic.
    Important: THIS COLOR IS IGNORED FOR SOLID PATTERNS, which are the most common case. If a pattern is solid you need to use FgColor.
    Please read the documentation in FgColor for a more complete explanation on why BgColor is ignored.

    Methods

    Name Description
    Clone Creates a deep copy of this object.

    Properties

    Name Description
    Gradient Gradient definition. This is only valid if Pattern is TFlxPatternStyle.​Gradient.​
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com