Click or drag to resize

IWorkbook SetColorOrGetNearest Method (Color)

If there is at least one free color, define a new color; if not, search for the closest one.

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

Parameters

color
Type: System.Drawing Color

Return Value

Type: ExcelColors
Color index from workbook palette.
See Also