RichEdit1.SelStart:=0; RichEdit1.SelLength:=Length(RichEdit1.Text); RichEdit1.Paragraph.Alignment:=taCenter; RichEdit1.SelStart:=0;