RAD Studio VCL Reference
|
TRichEditAction is the base class for action objects that apply rich text attributes to a rich edit control.
TRichEditAction = class(TEditAction);
class TRichEditAction : public TEditAction;
ExtActns
TRichEditAction implements the common behavior for actions that assign text attributes to a rich edit control. Each descendant class represents a specific text attribute. Do not use TRichEditAction directly in an application. Instead, use a TRichEditAction descendant such as TRichEditBold, TRichEditItalic, TRichEditUnderline, TRichEditStrikeOut, TRichEditAlignCenter, TRichEditAlignLeft, TRichEditAlignRight, or TRichEditBullets.
TRichEditAction ensures that the action is only works with a TCustomRichEdit descendant as a target. TRichEditAction descendants toggle their specific text attribute in the target rich edit control: if the attribute is set, it is removed, and if it is not set (or set for only some of the text), the action sets it. If the target rich edit control has a selection, the attribute is toggled for the selected text only. If there is no selection, the attribute is toggled for all of the text.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|