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
)
Public Function GetNearestColor (
r As Integer,
g As Integer,
b As Integer
) As ExcelColors
public:
virtual ExcelColors GetNearestColor(
int r,
int g,
int b
) sealed
abstract GetNearestColor :
r : int *
g : int *
b : int -> ExcelColors
override GetNearestColor :
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.
Implements
IWorkbook
GetNearestColor(Int32, Int32, Int32)
See Also