Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / ColorHelper Class / ToIndexColor Method
The name of the Color to convert; for example Red or Ice Blue.


In This Topic
    ToIndexColor Method
    In This Topic
    Converts to an index taken from the indexed color palette.
    Syntax
    'Declaration
     
    
    Public Shared Function ToIndexColor( _
       ByVal color As Color _
    ) As Integer
    'Usage
     
    
    Dim color As Color
    Dim value As Integer
     
    value = ColorHelper.ToIndexColor(color)
    public static int ToIndexColor( 
       Color color
    )

    Parameters

    color
    The name of the Color to convert; for example Red or Ice Blue.

    Return Value

    The index that represents the converted Color.
    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