Spread Windows Forms 12.0 Product Documentation
Color1 Property (GradientSelectionRenderer)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GradientSelectionRenderer Class : Color1 Property
Gets or sets the first color of a two-color gradient.
Syntax
'Declaration
 
Public Property Color1 As Color
'Usage
 
Dim instance As GradientSelectionRenderer
Dim value As Color
 
instance.Color1 = value
 
value = instance.Color1
public Color Color1 {get; set;}

Property Value

Color object containing the first color of a two-color gradient or the only color of a one-color gradient
Example
This example customizes the selection renderer.
FarPoint.Win.Spread.GradientSelectionRenderer gsr = new FarPoint.Win.Spread.GradientSelectionRenderer();
gsr.Color1 = Color.Green;
gsr.Color2 = Color.LightGreen;
gsr.LinearGradientMode = Drawing2D.LinearGradientMode.BackwardDiagonal;
gsr.Opacity = 50;
fpSpread1.SelectionRenderer = gsr;
Dim gsr As New FarPoint.Win.Spread.GradientSelectionRenderer
gsr.Color1 = Color.Green
gsr.Color2 = Color.LightGreen
gsr.LinearGradientMode = Drawing2D.LinearGradientMode.BackwardDiagonal
gsr.Opacity = 50
FpSpread1.SelectionRenderer = gsr
See Also

Reference

GradientSelectionRenderer Class
GradientSelectionRenderer Members