Vcl.ColorGrd.TColorGrid.ColorToIndex
Delphi
function ColorToIndex(AColor: TColor): Integer;
C++
int __fastcall ColorToIndex(System::Uitypes::TColor AColor);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Vcl.ColorGrd.pas Vcl.ColorGrd.hpp |
Vcl.ColorGrd | TColorGrid |
Description
Returns the index that the given color has in the grid.
ColorToIndex determines what position AColor occupies in the color array. If AColor is not among the colors on the grid, -1 is returned.