Version

CreatePatternFill(Color,Color,FillPatternStyle) Method

Creates a solid color or pattern fill that can be applied to a cell.
Syntax
public static CellFillPattern CreatePatternFill( 
   Color backgroundColor,
   Color patternColor,
   FillPatternStyle patternStyle
)

Parameters

backgroundColor
The background color of the cell, which will only be seen if the patternStyle is not None.
patternColor
The pattern color of the cell, which will only be seen if the patternStyle is not None or Solid.
patternStyle
The fill pattern for the cell.
Exceptions
ExceptionDescription
System.ArgumentExceptionbackgroundColor or patternColor are the empty color or have a non-opaque alpha channel.
System.ComponentModel.InvalidEnumArgumentExceptionpatternStyle is Default or not defined in the FillPatternStyle enumeration.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also