Spread Windows Forms 11.0 Product Documentation
LinearGradientMode Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GradientSelectionRenderer Class : LinearGradientMode Property
Gets or sets the gradient mode.
Syntax
'Declaration
 
Public Property LinearGradientMode As LinearGradientMode
'Usage
 
Dim instance As GradientSelectionRenderer
Dim value As LinearGradientMode
 
instance.LinearGradientMode = value
 
value = instance.LinearGradientMode
public LinearGradientMode LinearGradientMode {get; set;}

Property Value

LinearGradientMode setting that specifies the gradient mode
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