Spread Windows Forms 10.0 Product Documentation
EnhancedScrollBarRenderer Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color)
Example 


Color of the arrow
Color of the arrow hovered
Color of the arrow selected
Color of the button background
Color of the button border
Color of the button hovered background
Color of the button hovered border
Color of the button selected background
Color of the button selected border
Color of the track bar background
Color of the track bar selected background
Initializes a new instance of the EnhancedScrollBarRenderer class.
Syntax
'Declaration
 
Public Function New( _
   ByVal arrowColor As Color, _
   ByVal arrowHoveredColor As Color, _
   ByVal arrowSelectedColor As Color, _
   ByVal buttonBackgroundColor As Color, _
   ByVal buttonBorderColor As Color, _
   ByVal buttonHoveredBackgroundColor As Color, _
   ByVal buttonHoveredBorderColor As Color, _
   ByVal buttonSelectedBackgroundColor As Color, _
   ByVal buttonSelectedBorderColor As Color, _
   ByVal trackBarBackgroundColor As Color, _
   ByVal trackBarSelectedBackgroundColor As Color _
)
'Usage
 
Dim arrowColor As Color
Dim arrowHoveredColor As Color
Dim arrowSelectedColor As Color
Dim buttonBackgroundColor As Color
Dim buttonBorderColor As Color
Dim buttonHoveredBackgroundColor As Color
Dim buttonHoveredBorderColor As Color
Dim buttonSelectedBackgroundColor As Color
Dim buttonSelectedBorderColor As Color
Dim trackBarBackgroundColor As Color
Dim trackBarSelectedBackgroundColor As Color
 
Dim instance As New EnhancedScrollBarRenderer(arrowColor, arrowHoveredColor, arrowSelectedColor, buttonBackgroundColor, buttonBorderColor, buttonHoveredBackgroundColor, buttonHoveredBorderColor, buttonSelectedBackgroundColor, buttonSelectedBorderColor, trackBarBackgroundColor, trackBarSelectedBackgroundColor)

Parameters

arrowColor
Color of the arrow
arrowHoveredColor
Color of the arrow hovered
arrowSelectedColor
Color of the arrow selected
buttonBackgroundColor
Color of the button background
buttonBorderColor
Color of the button border
buttonHoveredBackgroundColor
Color of the button hovered background
buttonHoveredBorderColor
Color of the button hovered border
buttonSelectedBackgroundColor
Color of the button selected background
buttonSelectedBorderColor
Color of the button selected border
trackBarBackgroundColor
Color of the track bar background
trackBarSelectedBackgroundColor
Color of the track bar selected background
Example
This example customizes the scrollbar.
FarPoint.Win.Spread.EnhancedScrollBarRenderer r = new FarPoint.Win.Spread.EnhancedScrollBarRenderer(Color.Red, Color.Orange, Color.DarkRed, Color.Crimson, Color.Azure, Color.DarkSalmon, Color.Tomato, Color.Thistle, Color.Tomato, Color.White, Color.IndianRed);
FarPoint.Win.Spread.SpreadSkin SpreadSkin = new FarPoint.Win.Spread.SpreadSkin(fpSpread1.Skin);
SpreadSkin.ScrollBarRenderer = r;
SpreadSkin.Apply(fpSpread1);
Dim r As New FarPoint.Win.Spread.EnhancedScrollBarRenderer(Color.Red, Color.Orange, Color.DarkRed, Color.Crimson, Color.Azure, Color.DarkSalmon, Color.Tomato, Color.Thistle, Color.Tomato, Color.White, Color.IndianRed)
Dim SpreadSkin = New FarPoint.Win.Spread.SpreadSkin(FpSpread1.Skin)
SpreadSkin.ScrollBarRenderer = r
SpreadSkin.Apply(FpSpread1)
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

EnhancedScrollBarRenderer Class
EnhancedScrollBarRenderer Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.