Spread Windows Forms 12.0 Product Documentation
EnhancedScrollBarRenderer Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > EnhancedScrollBarRenderer Class > EnhancedScrollBarRenderer Constructor : EnhancedScrollBarRenderer Constructor()
Initializes a new instance of the EnhancedScrollBarRenderer class.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New EnhancedScrollBarRenderer()
public EnhancedScrollBarRenderer()
Example
This example customizes the scrollbar.
FarPoint.Win.Spread.EnhancedScrollBarRenderer r = new FarPoint.Win.Spread.EnhancedScrollBarRenderer();
r.ArrowColor = Color.Red;
r.ArrowHoveredColor = Color.Orange;
r.ArrowSelectedColor = Color.DarkRed;
r.ButtonBackgroundColor = Color.Crimson;
r.ButtonBorderColor = Color.Azure;
r.ButtonHoveredBackgroundColor = Color.DarkSalmon;
r.ButtonHoveredBorderColor = Color.Tomato;
r.ButtonSelectedBackgroundColor = Color.Thistle;
r.ButtonSelectedBorderColor = Color.Tomato;
r.TrackBarBackgroundColor = Color.White;
r.TrackBarSelectedBackgroundColor = 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
r.ArrowColor = Color.Red
r.ArrowHoveredColor = Color.Orange
r.ArrowSelectedColor = Color.DarkRed
r.ButtonBackgroundColor = Color.Crimson
r.ButtonBorderColor = Color.Azure
r.ButtonHoveredBackgroundColor = Color.DarkSalmon
r.ButtonHoveredBorderColor = Color.Tomato
r.ButtonSelectedBackgroundColor = Color.Thistle
r.ButtonSelectedBorderColor = Color.Tomato
r.TrackBarBackgroundColor = Color.White
r.TrackBarSelectedBackgroundColor = Color.IndianRed
Dim SpreadSkin = New FarPoint.Win.Spread.SpreadSkin(FpSpread1.Skin)
SpreadSkin.ScrollBarRenderer = r
SpreadSkin.Apply(FpSpread1)
See Also

Reference

EnhancedScrollBarRenderer Class
EnhancedScrollBarRenderer Members
Overload List