Exemple #1
0
        public CStyleApplier CellColor(RGBColor foregroundColor, RGBColor backgroundColor, FillPattern pattern)
        {
            FillForegroundColor = foregroundColor;
            FillBackgroundColor = backgroundColor;

            if (foregroundColor.Index == RGBColor.AutomaticIndex && backgroundColor.Index == RGBColor.AutomaticIndex)
            {
                FillPattern = FillPattern.NoFill;
            }
            else
            {
                FillPattern = pattern;
            }

            return(this);
        }
Exemple #2
0
 public CStyleApplier CellColor(RGBColor foregroundColor)
 => CellColor(foregroundColor, RGBColor.Automatic, FillPattern.SolidForeground);