Vcl.ExtActns.TRichEditAction

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.StdActns.TEditActionVcl.ActnList.TActionVcl.ActnList.TCustomActionSystem.Actions.TContainedActionSystem.Classes.TBasicActionSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTRichEditAction

Delphi

TRichEditAction = class(TEditAction)

C++

class PASCALIMPLEMENTATION TRichEditAction : public Vcl::Stdactns::TEditAction

Properties

Type Visibility Source Unit Parent
class public
Vcl.ExtActns.pas
Vcl.ExtActns.hpp
Vcl.ExtActns Vcl.ExtActns

Description

TRichEditAction is the base class for action objects that apply rich text attributes to a rich edit control.

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.

See Also