Method GetColorIndex
GetColorIndex(Color?)
Gets the index of the specified color in the list of colors.
public virtual int GetColorIndex(Color? color)
Parameters
color
ColorThe color to find the index of.
Returns
- int
The index of the specified color, or -1 if the color is not found.