Version

CellFillGradientStop Constructor(Color,Double)

Creates a new CellFillGradientStop instance.
Syntax
public CellFillGradientStop( 
   Color color,
   double offset
)

Parameters

color
The color transition for the gradient stop.
offset
The position in the gradient of the color transition for the gradient stop, ranging from 0.0 to 1.0.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionoffset is less than 0.0 or greater than 1.0.
System.ArgumentExceptioncolor is the empty or system color or has a non-opaque alpha channel.
Remarks

When used in a CellFillLinearGradient, an offset of 0.0 is at the beginning of the gradient and 1.0 is at the end of the gradient. When used in a CellFillRectangularGradient, an offset of 0.0 is at the inner rectangle and 1.0 is at the outer edges of the cell.

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