GemBox.Spreadsheet

ExcelFillPattern.SetPattern Method 

Sets complex (non-empty and non-solid) pattern.

public void SetPattern(
   FillPatternStyle patternStyle,
   Color foregroundColor,
   Color backgroundColor
);

Parameters

patternStyle
Pattern style.
foregroundColor
Foreground color.
backgroundColor
Background color.

Remarks

For solid pattern, just use SetSolid method.

To clear fill pattern, just set PatternStyle to FillPatternStyle.None

See Also

ExcelFillPattern Class | GemBox.Spreadsheet Namespace