[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.ColRowToOffset

Converts a column or row index to starting and ending pixels coordinates.

Declaration

Source position: grids.pas line 1007

protected function TCustomGrid.ColRowToOffset(

  IsCol: Boolean;

  Relative: Boolean;

  Index: Integer;

  out StartPos: Integer;

  out EndPos: Integer

):Boolean;

Arguments

IsCol

  

True when the index is for a column in the grid, False for a row.

Index

  

Ordinal position for the column or row.

StartPos

  

Position where the column or row starts (pixel).

EndPos

  

Position where the column or row ends (pixel).

Function result

True if a column or row exists for the specified index.


Version 3.2 Generated 2024-02-25 Home