Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / EnhancedScrollBarRenderer Class / EnhancedScrollBarRenderer Constructor / EnhancedScrollBarRenderer Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color)
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
Example


In This Topic
    EnhancedScrollBarRenderer Constructor(Color,Color,Color,Color,Color,Color,Color,Color,Color,Color,Color)
    In This Topic
    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)
    See Also