Version

CellFillGradientStop Constructor(WorkbookColorInfo,Double)

Creates a new CellFillGradientStop instance.
Syntax
'Declaration
 
Public Function New( _
   ByVal colorInfo As WorkbookColorInfo, _
   ByVal offset As Double _
)
public CellFillGradientStop( 
   WorkbookColorInfo colorInfo,
   double offset
)

Parameters

colorInfo
The WorkbookColorInfo describing 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.ArgumentExceptioncolorInfo is automatic or a system color.
System.ArgumentOutOfRangeExceptionoffset is less than 0.0 or greater than 1.0.
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: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also