IWorkbook
SetColorOrGetNearest Method (Int32, Int32, Int32)
|
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(
int r,
int g,
int b
)
Function SetColorOrGetNearest (
r As Integer,
g As Integer,
b As Integer
) As ExcelColors
ExcelColors SetColorOrGetNearest(
int r,
int g,
int b
)
abstract SetColorOrGetNearest :
r : int *
g : int *
b : int -> ExcelColors
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.
See Also