Spread Windows Forms 12.0 Product Documentation
GradientInterfaceRenderer Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Font,Font)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GradientInterfaceRenderer Class > GradientInterfaceRenderer Constructor : GradientInterfaceRenderer Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Font,Font)
Top color of the gradient
Bottom color of the gradient
Top color of the gradient for mouse-overs
Bottom color of the gradient for mouse-overs
Top color of the gradient when in focus
Bottom color of the gradient when in focus
Top color of the gradient when disabled
Bottom color of the gradient when disabled
Text color
Background color
Border color
Top color of the gradient when pressed
Bottom color of the gradient when pressed
Text font
Text font when in focus
Creates a new interface gradient renderer with the specified parameters.
Syntax
'Declaration
 
Public Function New( _
   ByVal topColor As Color, _
   ByVal bottomColor As Color, _
   ByVal mouseTopColor As Color, _
   ByVal mouseBottomColor As Color, _
   ByVal activeTopColor As Color, _
   ByVal activeBottomColor As Color, _
   ByVal disabledTopColor As Color, _
   ByVal disabledBottomColor As Color, _
   ByVal foreColor As Color, _
   ByVal backgroundColor As Color, _
   ByVal borderColor As Color, _
   ByVal pressedTopColor As Color, _
   ByVal pressedBottomColor As Color, _
   ByVal font As Font, _
   ByVal activeFont As Font _
)
'Usage
 
Dim topColor As Color
Dim bottomColor As Color
Dim mouseTopColor As Color
Dim mouseBottomColor As Color
Dim activeTopColor As Color
Dim activeBottomColor As Color
Dim disabledTopColor As Color
Dim disabledBottomColor As Color
Dim foreColor As Color
Dim backgroundColor As Color
Dim borderColor As Color
Dim pressedTopColor As Color
Dim pressedBottomColor As Color
Dim font As Font
Dim activeFont As Font
 
Dim instance As New GradientInterfaceRenderer(topColor, bottomColor, mouseTopColor, mouseBottomColor, activeTopColor, activeBottomColor, disabledTopColor, disabledBottomColor, foreColor, backgroundColor, borderColor, pressedTopColor, pressedBottomColor, font, activeFont)

Parameters

topColor
Top color of the gradient
bottomColor
Bottom color of the gradient
mouseTopColor
Top color of the gradient for mouse-overs
mouseBottomColor
Bottom color of the gradient for mouse-overs
activeTopColor
Top color of the gradient when in focus
activeBottomColor
Bottom color of the gradient when in focus
disabledTopColor
Top color of the gradient when disabled
disabledBottomColor
Bottom color of the gradient when disabled
foreColor
Text color
backgroundColor
Background color
borderColor
Border color
pressedTopColor
Top color of the gradient when pressed
pressedBottomColor
Bottom color of the gradient when pressed
font
Text font
activeFont
Text font when in focus
Example
This example creates a gradient interface renderer.
fpSpread1.Sheets.Count = 2;
FarPoint.Win.Spread.GradientInterfaceRenderer gr = new FarPoint.Win.Spread.GradientInterfaceRenderer(Color.Yellow, Color.Orange, Color.Blue, Color.Green, Color.Beige, Color.Red, Color.RoyalBlue, Color.MistyRose, Color.Black, Color.Bisque, Color.Aqua, Color.BurlyWood, Color.Orange, new Font("Arial", 10), new Font("Calibri", 12));            
fpSpread1.InterfaceRenderer = gr;
fpSpread1.Sheets.Count = 2
Dim gr As New FarPoint.Win.Spread.GradientInterfaceRenderer(Color.Yellow, Color.Orange, Color.Blue, Color.Green, Color.Beige, Color.Red, Color.RoyalBlue, Color.MistyRose, Color.Black, Color.Bisque, Color.Aqua, Color.BurlyWood, Color.Orange, New Font("Arial", 10), New Font("Calibri", 12))
fpSpread1.InterfaceRenderer = gr
See Also

Reference

GradientInterfaceRenderer Class
GradientInterfaceRenderer Members
Overload List