Ribbon for WinForms | ComponentOne
C1.Win.Ribbon Namespace / RibbonColorPickerItem Class / GetColorIndex Method
Primary or secondary color.

In This Topic
    GetColorIndex Method (RibbonColorPickerItem)
    In This Topic
    Returns the color index from the palette.
    Syntax
    'Declaration
     
    
    Public Function GetColorIndex( _
       ByVal color As Color _
    ) As Integer
    public int GetColorIndex( 
       Color color
    )

    Parameters

    color
    Primary or secondary color.

    Return Value

    The color index from the palette.
    See Also