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); }
public CStyleApplier CellColor(RGBColor foregroundColor) => CellColor(foregroundColor, RGBColor.Automatic, FillPattern.SolidForeground);