Click or drag to resize

XlsWorkbook GetNearestColor Method (Color, Int32)

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,
	int iStartIndex
)

Parameters

color
Type: System.Drawing Color
Color to look for.
iStartIndex
Type: System Int32
Start index.

Return Value

Type: ExcelColors
Color index from workbook palette.
See Also