[英]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.