Vcl.DBGrids.TCustomDBGrid.UseRightToLeftAlignmentForField
Delphi
function UseRightToLeftAlignmentForField(const AField: TField;
Alignment: TAlignment): Boolean;
C++
bool __fastcall UseRightToLeftAlignmentForField(Data::Db::TField* const AField, System::Classes::TAlignment Alignment);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Indicates whether the alignment of a specified field should be changed from left-aligned to right-aligned.
UseRightToLeftAlignmentForField is called internally when drawing field values to determine whether the Alignment of AField should be changed from left-aligned to right-aligned. This method lets the data-aware grid honor the current setting of the BiDiMode property. UseRightToLeftAlignment returns true if the application is running in a mideast locale (where alignment should be reversed), the field contains text (as opposed to numeric or date/time values), and the specified alignment is not taCenter.