FMX.Grid.TGridModel.TCoord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

    TCoord = record
      procedure Clear;
      function IsEmpty: Boolean;
      case Boolean of
        False:
          (Col, Row: Integer);
        True:
          (AsArray: array [0 .. 1] of Integer);
    end;

C++

struct DECLSPEC_DRECORD TCoord
{
public:
    void __fastcall Clear();
    bool __fastcall IsEmpty();
public:
    union
    {
        struct
        {
            System::StaticArray<int, 2> AsArray;
        };
        struct
        {
            int Col;
            int Row;
        };
    };
};

Properties

Type Visibility Source Unit Parent
record
struct
public
FMX.Grid.pas
FMX.Grid.hpp
FMX.Grid TGridModel

Description

Represents the grid coordinates of a cell (column number and row number).

You can use Col and Row to define the cell coordinates, and you can use AsArray to obtain them as an array.

You can use Clear to reset the values of Col and Row. Use IsEmpty to check whether or not those values are defined.

See Also