Vcl.Grids.TCustomGrid.ChangeGridOrientation
Delphi
procedure ChangeGridOrientation(RightToLeftOrientation: Boolean);
C++
void __fastcall ChangeGridOrientation(bool RightToLeftOrientation);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
Description
Prepares the grid's canvas for painting to reflect a right-to-left or left-to-right orientation.
TCustomGrid uses ChangeGridOrientation internally when painting. ChangeGridOrientation sets the origin and dimensions of the grid's canvas so that painting occurs from right-to-left or from left-to-right based on the value of the RightToLeftOrientation parameter.
RightToLeftOrientation is true if the grid should prepare for painting from right to left. RightToLeftOrientation is false if the grid should restore the canvas to normal.