Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / TwoColorScaleRule Class / Create Method
The minimum scale type.
The minimum scale value.
The minimum scale color.
The maximum scale type.
The maximum scale value.
The maximum scale color.


In This Topic
    Create Method (TwoColorScaleRule)
    In This Topic
    Creates a new two color scale with the specified parameters.
    Syntax
    'Declaration
     
    Public Shared Function Create( _
       ByVal minType As ScaleValueType, _
       ByVal minValue As Object, _
       ByVal minColor As Color, _
       ByVal maxType As ScaleValueType, _
       ByVal maxValue As Object, _
       ByVal maxColor As Color _
    ) As TwoColorScaleRule
    'Usage
     
    Dim minType As ScaleValueType
    Dim minValue As Object
    Dim minColor As Color
    Dim maxType As ScaleValueType
    Dim maxValue As Object
    Dim maxColor As Color
    Dim value As TwoColorScaleRule
     
    value = TwoColorScaleRule.Create(minType, minValue, minColor, maxType, maxValue, maxColor)
    public static TwoColorScaleRule Create( 
       ScaleValueType minType,
       object minValue,
       Color minColor,
       ScaleValueType maxType,
       object maxValue,
       Color maxColor
    )

    Parameters

    minType
    The minimum scale type.
    minValue
    The minimum scale value.
    minColor
    The minimum scale color.
    maxType
    The maximum scale type.
    maxValue
    The maximum scale value.
    maxColor
    The maximum scale color.

    Return Value

    The new two color scale rule.
    See Also