RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRichEditStrikeOut.ExecuteTarget Method

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

Pascal
procedure ExecuteTarget(Target: TObject); override;
C++
virtual __fastcall ExecuteTarget(TObject * Target);

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 fsStrikeOut style of the selected text attributes (SelAttributes property), adding the fsStrikeOut property if the selected text is not all struck out and removing it if the selected text is entirely struck out. Note that if the selected text contains both strikeout and non-strikeout text, this results in the text becoming entirely struck out. 

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!