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

TCustomGrid.OffsetToColRow

Moves to a column or row located at the specified offset.

Declaration

Source position: grids.pas line 1139

protected function TCustomGrid.OffsetToColRow(

  IsCol: Boolean;

  Physical: Boolean;

  Offset: Integer;

  out Index: Integer;

  out Rest: Integer

):Boolean;

Arguments

IsCol

  

True if the offset is for a column, False for a row.

Physical

  

True for a physical offset, False for a logical offset.

Offset

  

Offset in pixels for the column or row.

Index

  

Index position for the column or row in the specified offset.

Rest

  

Remaining pixels stating at the value in Index.

Function result

True if a column and row number was identified for the specified offset.

Version info

Index and Rest arguments were changed to output parameters in LCL version 2.1 (revision 65087).