XlsWorkbook
GetNearestColor Method (Color, Int32)
|
Gets the nearest color to the specified Color structure
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(
Color color,
int iStartIndex
)
Public Function GetNearestColor (
color As Color,
iStartIndex As Integer
) As ExcelColors
public:
ExcelColors GetNearestColor(
Color color,
int iStartIndex
)
member GetNearestColor :
color : Color *
iStartIndex : int -> ExcelColors
Parameters
-
color
-
Type:
System.Drawing
Color
Color to look for.
-
iStartIndex
-
Type:
System
Int32
Start index.
Return Value
Type:
ExcelColors
Color index from workbook palette.
See Also