cellstyle.FillForegroundColor = 10;//10代表红色
//填充模式--必须设置
cellstyle.FillPattern = FillPattern.SolidForeground;//充满
Mainly to sort out the various enumeration results of FillPattern
FillPattern has the following enumerated types:
public enum FillPattern : short
{
NoFill = 0,
SolidForeground = 1,
FineDots = 2,
AltBars = 3,
SparseDots = 4,
ThickHorizontalBands = 5,
ThickVerticalBands = 6,
ThickBackwardDiagonals = 7,
ThickForwardDiagonals = 8,
BigSpots = 9,
Bricks = 10,
ThinHorizontalBands = 11,
ThinVerticalBands = 12,
ThinBackwardDiagonals = 13,
ThinForwardDiagonals = 14,
Squares = 15,
Diamonds = 16,
LessDots = 17,
LeastDots = 18
}