Click or drag to resize

XlsWorkbook GetNearestColor Method (Color)

Gets the nearest color to the specified Color structure from Workbook palette.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public ExcelColors GetNearestColor(
	Color color
)

Parameters

color
Type: System.Drawing Color
Color to look for.

Return Value

Type: ExcelColors
Color index from workbook palette.

Implements

IWorkbook GetNearestColor(Color)
See Also