Download Now

    Reference TGridCellManager

    Declared in Codebot.Controls.Grids.pas on line 175

    TGridCellManager stores the column widths and row heights of a grid
      TGridCellManager = class(TObject)
      public
        { Create a new cell manager }
        constructor Create;
        destructor Destroy; override;
        { Return the bounds of a cell }
        function GetCell(X, Y: Integer): TRect;
        { The width of columns which have not been sized }
        property DefColWidth: Integer read FDefColWidth write FDefColWidth;
        { The height of rows which have not been sized }
        property DefRowHeight: Integer read FDefRowHeight write FDefRowHeight;
        { The number of columns }
        property ColCount: Integer read FColCount write SetColCount;
        { The number of rows }
        property RowCount: Integer read FRowCount write SetRowCount;
        { The height of a row }
        property RowHeight[Index: Integer]: Integer read GetRow write SetRow;
        { The width of a column }
        property ColWidth[Index: Integer]: Integer read GetCol write SetCol;
      end;