Spread Windows Forms 12.0 Product Documentation
GradientSelectionRenderer Constructor(Color,Color,LinearGradientMode,Int32)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GradientSelectionRenderer Class > GradientSelectionRenderer Constructor : GradientSelectionRenderer Constructor(Color,Color,LinearGradientMode,Int32)
Initial color in the gradient
Second color at the other end of the gradient
Gradient mode
Amount of opacity (opposite of transparency)
Creates a new gradient selection renderer.
Syntax
'Declaration
 
Public Function New( _
   ByVal color1 As Color, _
   ByVal color2 As Color, _
   ByVal mode As LinearGradientMode, _
   ByVal opacity As Integer _
)
'Usage
 
Dim color1 As Color
Dim color2 As Color
Dim mode As LinearGradientMode
Dim opacity As Integer
 
Dim instance As New GradientSelectionRenderer(color1, color2, mode, opacity)
public GradientSelectionRenderer( 
   Color color1,
   Color color2,
   LinearGradientMode mode,
   int opacity
)

Parameters

color1
Initial color in the gradient
color2
Second color at the other end of the gradient
mode
Gradient mode
opacity
Amount of opacity (opposite of transparency)
Example
This example customizes the selection renderer.
FarPoint.Win.Spread.GradientSelectionRenderer gsr = new FarPoint.Win.Spread.GradientSelectionRenderer(Color.Green, Color.LightGreen,
Drawing2D.LinearGradientMode.BackwardDiagonal, 50);
fpSpread1.SelectionRenderer = gsr;
Dim gsr As New FarPoint.Win.Spread.GradientSelectionRenderer(Color.Green, Color.LightGreen, Drawing2D.LinearGradientMode.BackwardDiagonal,
50) 
FpSpread1.SelectionRenderer = gsr
See Also

Reference

GradientSelectionRenderer Class
GradientSelectionRenderer Members
Overload List