Click or drag to resize

XlsWorkbook GetNearestColor Method (Int32, Int32, Int32)

Gets the nearest color to the specified by red, green, and blue values color 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(
	int r,
	int g,
	int b
)

Parameters

r
Type: System Int32
Red component of the color.
g
Type: System Int32
Green component of the color.
b
Type: System Int32
Blue component of the color.

Return Value

Type: ExcelColors
Color index from workbook palette.

Implements

IWorkbook GetNearestColor(Int32, Int32, Int32)
See Also