Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / ColorConverter Class / GetNextColor Method
The start color value to calculate the next color relative to.
Index of the next color.
Count of total colors.


In This Topic
    GetNextColor Method
    In This Topic
    Calculates next palette color using the specified start color value, index, and count.
    Syntax
    'Declaration
     
    Public Shared Function GetNextColor( _
       ByVal color As Color, _
       ByVal index As Integer, _
       ByVal count As Integer _
    ) As Color
    'Usage
     
    Dim color As Color
    Dim index As Integer
    Dim count As Integer
    Dim value As Color
     
    value = ColorConverter.GetNextColor(color, index, count)
    public static Color GetNextColor( 
       Color color,
       int index,
       int count
    )

    Parameters

    color
    The start color value to calculate the next color relative to.
    index
    Index of the next color.
    count
    Count of total colors.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also