Vcl.ColorGrd.TColorGrid.SquareFromPos
Delphi
function SquareFromPos(X, Y: Integer): Integer;
C++
int __fastcall SquareFromPos(int X, int Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ColorGrd.pas Vcl.ColorGrd.hpp |
Vcl.ColorGrd | TColorGrid |
Description
Returns the index of the color slot that includes the X, Y coordinates.
SquareFromPos determines which color slot resides at the position indicated by the X and Y coordinates and returns its index.