SpreadsheetGear 2023
InsertAt(Int32,Color,Double,Double) Method


SpreadsheetGear.Shapes Namespace > IGradientStops Interface > InsertAt Method : InsertAt(Int32,Color,Double,Double) Method
The index of the new gradient stop
The color of the gradient stop as an RGB value
The position of the gradient stop as a value from 0.0 to 1.0
The transparency of the gradient stop as a value from 0.0 (opaque) to 1.0 (transparent)
Inserts a new gradient stop at the specified index in the collection.
Syntax
'Declaration
 
Overloads Sub InsertAt( _
   ByVal index As System.Integer, _
   ByVal rgb As Color, _
   ByVal position As System.Double, _
   ByVal transparency As System.Double _
) 
'Usage
 
Dim instance As IGradientStops
Dim index As System.Integer
Dim rgb As Color
Dim position As System.Double
Dim transparency As System.Double
 
instance.InsertAt(index, rgb, position, transparency)
void InsertAt( 
   System.int index,
   Color rgb,
   System.double position,
   System.double transparency
)

Parameters

index
The index of the new gradient stop
rgb
The color of the gradient stop as an RGB value
position
The position of the gradient stop as a value from 0.0 to 1.0
transparency
The transparency of the gradient stop as a value from 0.0 (opaque) to 1.0 (transparent)
Requirements

Target Platforms: 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

Reference

IGradientStops Interface
IGradientStops Members
Overload List