Page 1 of 1

Get alignment in the cursor position.

Posted: Tue Mar 05, 2024 8:09 am
by Reginaborder
Hello
How do I determine the text alignment used on the selected line?

Re: Get alignment in the cursor position.

Posted: Tue Mar 05, 2024 10:47 am
by Sergey Tkachenko

Code: Select all

var
  rve: TCustomRichViewEdit;


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