ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLStyle Class / IndexFromColor Method

In This Topic
    IndexFromColor Method
    In This Topic
    Search for the nearest color in the RGB space.
    Syntax
    'Declaration
     
    Public Shared Function IndexFromColor( _
       ByVal color As System.Drawing.Color _
    ) As System.Short
    public static System.short IndexFromColor( 
       System.Drawing.Color color
    )

    Parameters

    color
    See Also