Hello
How do I determine the text alignment used on the selected line?
Get alignment in the cursor position.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Get alignment in the cursor position.
Code: Select all
var
rve: TCustomRichViewEdit;
rve := RichViewEdit1.TopLevelEditor;
Alignment := rve.Style.ParaStyles[rve.GetItemPara(rve.CurItemNo)].Alignment;