FlexChart | ComponentOne
C1.Win.Ribbon.8 Assembly / 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 System.Drawing.Color _
    ) As System.Integer
    public System.int GetColorIndex( 
       System.Drawing.Color color
    )

    Parameters

    color
    Primary or secondary color.

    Return Value

    The color index from the palette.
    See Also