[]
DEMOS
DOCS
API
SAMPLES
DOWNLOAD
dotnet-standard-api
C1.Excel Assembly
C1.Excel
Classes
XLStyle
Methods
IndexFromColor
dotnet-standard-api
C1.Excel Assembly
C1.Excel
Classes
C1XLBook
ShapeCollection
XLBorderFormatting
XLCell
XLCellRange
XLCellRangeCollection
XLColumn
XLColumnCollection
XLComment
XLCommentCollection
XLCommentShape
XLConditionalFormatting
XLConditionalFormattingCollection
XLConditionalFormattingRangeCollection
XLConditionalFormattingRule
XLConditionalFormattingRuleCollection
XLDataValidation
XLDataValidationCollection
XLDataValidationRangeCollection
XLExternalBook
XLExternalBookCollection
XLExternalSheet
XLFont
XLFontFormatting
XLNamedRange
XLNamedRangeCollection
XLOpaqueShape
XLPatternFormatting
XLPictureShape
XLPrintSettings
XLProgressEventArgs
XLRange
XLRow
XLRowCollection
XLShape
XLSheet
XLSheetCollection
XLStyle
Constructors
Properties
Methods
Clone
ColorFromIndex
Equals
FormatDotNetToXL
FormatJapaneseDateTime
FormatXLToDotNet
GetHashCode
IndexFromColor
SetBorderColor
SetBorderStyle
XLTextShape
Structs
Enums
Delegates
C1.Util
(Showing Draft Content)
C1.Excel.XLStyle.IndexFromColor
IndexFromColor Method
IndexFromColor(Color)
Search for the nearest color in the RGB space.
Declaration
public static short IndexFromColor(Color color)
Parameters
Type
Name
Description
Color
color
Returns
Type
Description
short