FMX.Objects.TText.TAcceleratorInfo.DrawUnderline
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:
ACanvasallows 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.ALayoutdefines a layout to organize multiple graphical controls under the same parent.AColorspecifies the color.AnOpacityspecifies the transparency.