Vcl.Controls.TControl.DrawTextBiDiModeFlags

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DrawTextBiDiModeFlags(Flags: Longint): Longint;

C++

System::LongInt __fastcall DrawTextBiDiModeFlags(System::LongInt Flags);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Returns the text flags that reflect the current setting of the BiDiMode property.

Call DrawTextBiDiModeFlags to obtain a value for the TextFlags property of a canvas when drawing the control's text or caption. The return value can also be used with the Windows API DrawText function.

Flags are the current text flags, unaltered by any bidirectional mode considerations.

DrawTextBiDiModeFlags adds or removes the DT_RIGHT or DT_RTLREADING flags based on the values returned from the UseRightToLeftAlignment and UseRightToLeftReading methods.

See Also