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
)
Function SetColorOrGetNearest (
color As Color
) As ExcelColors
ExcelColors SetColorOrGetNearest(
Color color
)
abstract SetColorOrGetNearest :
color : Color -> ExcelColors
Parameters
-
color
-
Type:
System.Drawing
Color
Return Value
Type:
ExcelColors
Color index from workbook palette.
See Also