AddFillColorFilter

AutoFilter.AddFillColorFilter method

添加填充颜色过滤器。

public void AddFillColorFilter(int fieldIndex, BackgroundType pattern, CellsColor foregroundColor, 
    CellsColor backgroundColor)
范围类型描述
fieldIndexInt32您希望作为过滤器 基础的字段的整数偏移量(从列表的左侧开始;最左侧的字段是字段0)。
patternBackgroundType背景图案类型。
foregroundColorCellsColor前景色。
backgroundColorCellsColor背景颜色。

也可以看看