![](/img/trans.png)
[英]delphi stringgrid inplaceedit how to position and width of edit box in a cell that has a left/right justified checkbox
[英]How to left/right align lines in rich edit (Delphi)?
有沒有辦法可以在TRichEdit
組件中向左或向右對齊行?
我希望只對齊文本的一部分,而不是全部。
正如 Sertac 在評論中提到的,您使用TRichEdit.Paragraph.Alignment
。
RichEdit1.Paragraph.Alignment := taLeftJustify;
RichEdit1.Lines.Add('This line is left justified.');
RichEdit1.Paragraph.Alignment := taCenterJustify;
RichEdit1.Lines.Add('This line is centered.');
RichEdit1.Paragraph.Alignment := taRightJustify;
RichEdit1.Lines.Add('This line is right justified');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.