RichEdit1.Paragraph.Alignment := TAlignment(0) 左对齐
RichEdit1.Paragraph.Alignment := TAlignment(1) 右对齐
RichEdit1.SelectAllRichEdit1.Paragraph.Alignment:=taLeftJustify// switch for other alignments
RichEdit1.SelLength:=0
在窗体的OnCreate或OnShow 中加入(适合少数Edit右对齐情况):SetWindowLong(Edit1.Handle,GWL_STYLE,GetWindowLong(Edit1.Handle,GWL_STYLE) or Es_right)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)