Version

CreateRectangularGradientFill(WorkbookColorInfo,WorkbookColorInfo) Method

Creates a rectangular gradient that can be applied to a cell's fill.
Syntax
public static CellFillRectangularGradient CreateRectangularGradientFill( 
   WorkbookColorInfo colorInfo1,
   WorkbookColorInfo colorInfo2
)

Parameters

colorInfo1
A WorkbookColorInfo which describes the color at the inner rectangle (cell center) of the gradient.
colorInfo2
A WorkbookColorInfo which describes the color at the outer rectangle (cell edges) of the gradient.
Exceptions
ExceptionDescription
System.ArgumentExceptioncolorInfo1 or colorInfo2 is an automatic or a system color.
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