Get alignment in the cursor position.

General TRichView support forum. Please post your questions here
Post Reply
Reginaborder
Posts: 1
Joined: Tue Mar 05, 2024 8:04 am

Get alignment in the cursor position.

Post by Reginaborder »

Hello
How do I determine the text alignment used on the selected line?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Get alignment in the cursor position.

Post by Sergey Tkachenko »

Code: Select all

var
  rve: TCustomRichViewEdit;


rve := RichViewEdit1.TopLevelEditor;
Alignment := rve.Style.ParaStyles[rve.GetItemPara(rve.CurItemNo)].Alignment;
Post Reply