FMX.Objects.TText.TAcceleratorInfo.DrawUnderline

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DrawUnderline(const AnOwnerControl: TControl; const ACanvas: TCanvas; const ALayout: TTextLayout;
const AColor: TAlphaColor; const AnOpacity: Single): Boolean;

C++

bool __fastcall DrawUnderline(Fmx::Controls::TControl* const AnOwnerControl, Fmx::Graphics::TCanvas* const ACanvas, Fmx::Textlayout::TTextLayout* const ALayout, const System::Uitypes::TAlphaColor AColor, const float AnOpacity);

Properties

Type Visibility Source Unit Parent
function public
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TAcceleratorInfo

Description

Draws the underline under the character that holds the accelerator key.

DrawUnderline draws the underline under the accelerator key character of the receiver control (AnOwnerControl). The Brush property is used to define the format of the underline.

You can use the following DrawUnderline parameters to override this function:

  • ACanvas allows you to define an abstract drawing space. For example, the canvas can be used to specify the type of brush, stroke or font or to draw a different shapes or lines.
  • ALayout defines a layout to organize multiple graphical controls under the same parent.
  • AColor specifies the color.
  • AnOpacity specifies the transparency.

See Also