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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GradientSelectionRenderer Class
GradientSelectionRenderer Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.