Spread WPF 17
GrapeCity.Excel Namespace / IExcelWriter Interface / GetPaletteColor Method
An IExcelColor instance used to compare with the palette color


In This Topic
    GetPaletteColor Method (IExcelWriter)
    In This Topic
    Get the index of the closest color of the workbook color palette
    Syntax
    'Declaration
     
    Function GetPaletteColor( _
       ByVal color As IExcelColor _
    ) As ExcelPaletteColor
    'Usage
     
    Dim instance As IExcelWriter
    Dim color As IExcelColor
    Dim value As ExcelPaletteColor
     
    value = instance.GetPaletteColor(color)
    ExcelPaletteColor GetPaletteColor( 
       IExcelColor color
    )

    Parameters

    color
    An IExcelColor instance used to compare with the palette color

    Return Value

    The closest palette color index
    See Also