RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRichEditItalic.UpdateTarget Method

Sets the Checked property to reflect whether the target control's text is italic.

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

Do not call the UpdateTarget method. This method is called automatically when the application is idle so that actions can update themselves according to current conditions. 

Target is the currently active object when the action fires. 

UpdateTarget checks the selected text of the target rich edit control (which is specified by the Control property or the Target parameter) is in italics. If the selected text is italic, UpdateTarget sets the Checked property to true, otherwise it sets Checked to false. 

 

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