RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRichEditAlignRight Class

TRichEditAlignRight right-justifies the text in the current paragraph of a rich edit control.

Pascal
TRichEditAlignRight = class(TRichEditAction);
C++
class TRichEditAlignRight : public TRichEditAction;

ExtActns

Add TRichEditAlignRight to an action list to let users right-justify the text in a rich edit control. Controls such as menu items and tool buttons linked to this action cause the application to align the text in all paragraphs that contain selected text (or the paragraph with the cursor if no text is selected) to the right margin. 

TRichEditAlignRight is designed to work with a rich edit control (TCustomRichEdit descendant) as a target. It automatically disables itself if the active control in a form is not a rich edit control, and adds or removes a check mark to indicate whether the current paragraph of the target control is right-aligned. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!