Vcl.ExtActns.TRichEditUnderline.ExecuteTarget

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ExecuteTarget(Target: TObject); override;

C++

virtual void __fastcall ExecuteTarget(System::TObject* Target);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ExtActns.pas
Vcl.ExtActns.hpp
Vcl.ExtActns TRichEditUnderline

Description

Toggles the fsUnderline style of the target rich edit control's text attributes.

Do not call the ExecuteTarget method. This method is called automatically when the action fires in response to a user action (for example, when the user selects a menu item or presses a tool button that is linked to this action).

Target is the currently active object when the action fires.

If the target rich edit control has a selection, ExecuteTarget toggles the fsUnderline style of the selected text attributes (SelAttributes property), adding the fsUnderline property if the selected text is not all underlined and removing it if the selected text is entirely underlined. Note that if the selected text contains both underlined and non-underlined text, this results in the text becoming entirely underlined.

If the target rich edit control has no selection, ExecuteTarget toggles the default fsUnderline style of the control. This changes the underlined attribute of all text that has not had a specific text attribute applied.

See Also