Spread Windows Forms 15.0
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


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